home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / gnuplot.lha / gnuplot / docs / gnuplot.doc next >
Encoding:
Text File  |  1994-04-28  |  130.5 KB  |  3,709 lines

  1. 1 gnuplot
  2. ?
  3.  GNUPLOT is a command-driven interactive function plotting program.
  4.  
  5.  For help on any topic, type `help` followed by the name of the topic.
  6.  
  7.  The new GNUPLOT user should begin by reading the `introduction` topic
  8.  (type `help introduction`) and about the `plot` command (type `help plot`).
  9.  Additional help can be obtained from the USENET newsgroup
  10.  comp.graphics.gnuplot.
  11.  
  12. 2 copyright
  13. ?copyright
  14.       Copyright (C) 1986 - 1993   Thomas Williams, Colin Kelley
  15.  
  16.    Permission to use, copy, and distribute this software and its
  17.    documentation for any purpose with or without fee is hereby granted,
  18.    provided that the above copyright notice appear in all copies and
  19.    that both that copyright notice and this permission notice appear
  20.    in supporting documentation.
  21.  
  22.    Permission to modify the software is granted, but not the right to
  23.    distribute the modified code.  Modifications are to be distributed
  24.    as patches to released version.
  25.  
  26.    This software is provided "as is" without express or implied warranty.
  27.  
  28.  
  29.    AUTHORS
  30.  
  31.      Original Software:
  32.        Thomas Williams,  Colin Kelley.
  33.  
  34.      Gnuplot 2.0 additions:
  35.          Russell Lang, Dave Kotz, John Campbell.
  36.  
  37.      Gnuplot 3.0 additions:
  38.          Gershon Elber and many others.
  39.  
  40.    There is a mailing list for gnuplot users. Note, however, that the
  41.    newsgroup 
  42.          comp.graphics.gnuplot 
  43.    is identical to the mailing list (they
  44.    both carry the same set of messages). We prefer that you read the
  45.    messages through that newsgroup, to subscribing to the mailing list.
  46.    (If you can read that newsgroup, and are already on the mailing list,
  47.    please send a message info-gnuplot-request@dartmouth.edu, asking to be
  48.    removed from the mailing list.)
  49.  
  50.    The address for mailing to list members is
  51.          info-gnuplot@dartmouth.edu
  52.    and for mailing administrative requests is 
  53.          info-gnuplot-request@dartmouth.edu
  54.    The mailing list for bug reports is 
  55.          bug-gnuplot@dartmouth.edu
  56.    The list of those interested in beta-test versions is
  57.          info-gnuplot-beta@dartmouth.edu
  58.  
  59. 2 introduction
  60. ?introduction
  61.  GNUPLOT is a command-driven interactive function plotting program.
  62.  It is case sensitive (commands and function names written in lowercase
  63.  are not the same as those written in CAPS). All command names may be
  64.  abbreviated, as long as the abbreviation is not ambiguous. Any number
  65.  of commands may appear on a line, separated by semicolons (;).
  66.  Strings are indicated with quotes.  They may be either single or double
  67.  quotation marks, e.g.,
  68.  
  69.           load "filename"
  70.           cd 'dir'
  71.  
  72.  Any command-line arguments are assumed to be names of files containing
  73.  GNUPLOT commands, with the exception of standard X11 arguments, which
  74.  are processed first. Each file is loaded with the `load` command, in the
  75.  order specified. GNUPLOT exits after the last file is processed.  When
  76.  no load files are named, gnuplot enters into an interactive mode.
  77.  
  78.  Commands may extend over several input lines, by ending each
  79.  line but the last with a backslash (\). The backslash must be the LAST
  80.  character on each line. The effect is as if the backslash and newline
  81.  were not there. That is, no white space is implied, nor is a comment
  82.  terminated. Therefore, commenting out a continued line comments out
  83.  the entire command (see `comment`).
  84.  
  85.  In this documentation, curly braces ({}) denote optional arguments to
  86.  many commands, and a vertical bar (|) separates mutually exclusive
  87.  choices.  GNUPLOT keywords or help topics are indicated by backquotes
  88.  or `boldface` (where available).  Angle brackets (<>) are used to mark
  89.  replaceable tokens.
  90.  
  91.  For help on any topic, type `help` followed by the name of the topic.
  92.  
  93.  The new GNUPLOT user should begin by reading about the `plot`
  94.  command (type `help plot`).
  95. 2 cd
  96. ?cd
  97.  The `cd` command changes the working directory.
  98.  
  99.  Syntax:
  100.          cd "<directory-name>"
  101.  
  102.  The directory name must be enclosed in quotes.
  103.  
  104.  Examples:
  105.          cd 'subdir'
  106.          cd ".."
  107. 2 clear
  108. ?clear
  109.  The `clear` command erases the current screen or output device as
  110.  specified by `set output`. This usually generates a formfeed on
  111.  hardcopy devices. Use `set terminal` to set the device type.
  112. 2 command line-editing
  113. ?line-editing
  114. ?editing
  115. ?history
  116. ?command line-editing
  117.  The Unix, Atari, VMS, MS-DOS and OS/2 versions of GNUPLOT support command
  118.  line-editing.  Also, a history mechanism allows previous commands to be
  119.  edited, and re-executed. After the command line has been edited, a newline
  120.  or carriage return will enter the entire line regardless of where the
  121.  cursor is positioned.
  122.  
  123.  The editing commands are as follows:
  124.  
  125. @start table - first is interactive cleartext form
  126.   `Line-editing`:
  127.  
  128.   ^B moves back a single character.
  129.   ^F moves forward a single character.
  130.   ^A moves to the beginning of the line.
  131.   ^E moves to the end of the line.
  132.   ^H and DEL delete the previous character.
  133.   ^D deletes the current character.
  134.   ^K deletes from current position to the end of line.
  135.   ^L,^R redraws line in case it gets trashed.
  136.   ^U deletes the entire line.
  137.   ^W deletes the last word.
  138.  
  139.   `History`:
  140.  
  141.   ^P moves back through history.
  142.   ^N moves forward through history.
  143. #Character && Function \\ \hline
  144. #\multicolumn{3}{|c|}{Line Editing}\\
  145. #\verb~^B~ && move back a single character.\\
  146. #\verb~^F~ && move forward a single character.\\
  147. #\verb~^A~ && move to the beginning of the line.\\
  148. #\verb~^E~ && move to the end of the line.\\
  149. #\verb~^H, DEL~ && delete the previous character.\\
  150. #\verb~^D~ && delete the current character.\\
  151. #\verb~^K~ && delete from current position to the end of line.\\
  152. #\verb~^L, ^R~ && redraw line in case it gets trashed.\\
  153. #\verb~^U~ && delete the entire line. \\
  154. #\verb~^W~ && delete from the current word to the end of line. \\ \hline
  155. #\multicolumn{3}{|c|}{History} \\
  156. #\verb~^P~ && move back through history.\\
  157. #\verb~^N~ && move forward through history.\\
  158. %Character@@Function
  159. %_
  160. %@@Line Editing
  161. %^B@@move back a single character.
  162. %^F@@move forward a single character.
  163. %^A@@move to the beginning of the line.
  164. %^E@@move to the end of the line.
  165. %^H, DEL@@delete the previous character.
  166. %^D@@delete the current character.
  167. %^K@@delete from current position to the end of line.
  168. %^L, ^R@@redraw line in case it gets trashed.
  169. %^U@@delete the entire line.
  170. %^W@@delete from the current word to the end of line.
  171. %_
  172. %@@History
  173. %^P@@move back through history.
  174. %^N@@move forward through history.
  175. @end table
  176.  
  177.  On the IBM PC the use of a TSR program such as DOSEDIT or CED may be
  178.  desired for line editing. For such a case GNUPLOT may be compiled with
  179.  no line editing capability (default makefile setup). Set READLINE in the
  180.  makefile and add readline.obj to the link file if GNUPLOT line editing
  181.  is to be used for the IBM PC. The following arrow keys may be used
  182.  on the IBM PC and Atari versions if readline is used:
  183.  
  184. @start table - first is interactive cleartext form
  185.   Left  Arrow     - same as ^B.
  186.   Right Arrow     - same as ^F.
  187.   Ctl Left  Arrow - same as ^A.
  188.   Ctl Right Arrow - same as ^E.
  189.   Up    Arrow     - same as ^P.
  190.   Down  Arrow     - same as ^N.
  191. #Arrow key & Function & \\ \hline
  192. #Left      & same as \verb~^B~. & \\
  193. #Right     & same as \verb~^F~. & \\
  194. #Ctl Left  & same as \verb~^A~. & \\
  195. #Ctl Right & same as \verb~^E~. & \\
  196. #Up        & same as \verb~^P~. & \\
  197. #Down      & same as \verb~^N~. & \\
  198. %Arrow key@@Function
  199. %_
  200. %Left Arrow@@same as ^B.
  201. %Right Arrow@@same as ^F.
  202. %Ctl Left Arrow@@same as ^A.
  203. %Ctl Right Arrow@@same as ^E.
  204. %Up Arrow@@same as ^P.
  205. %Down Arrow@@same as ^N.
  206. %_
  207. @end table
  208.  
  209.  The Atari version of readline defines some additional key aliases:
  210.  
  211. @start table - first is interactive cleartext form
  212.   Undo            - same as ^L.
  213.   Home            - same as ^A.
  214.   Ctrl Home       - same as ^E.
  215.   ESC             - same as ^U.
  216.   Help            - `help' plus return.
  217.   Ctrl Help       - `help '.
  218. #Arrow key & Function & \\ \hline
  219. #Undo      & same as \verb~^L~. & \\
  220. #Home      & same as \verb~^A~. & \\
  221. #Ctrl Home & same as \verb~^E~. & \\
  222. #ESC       & same as \verb~^U~. & \\
  223. #Help      & `{\bf help}' plus return. & \\
  224. #Ctrl Help & `{\bf help }'. & \\
  225. %Arrow key@@Function
  226. %_
  227. %Undo@@same as ^L.
  228. %Home@@same as ^A.
  229. %Ctrl Home@@same as ^E.
  230. %ESC@@same as ^U.
  231. %Help@@help plus return.
  232. %Ctrl Help@@help .
  233. %_
  234. @end table
  235.  
  236.  (The readline function in gnuplot is not the same as the readline used
  237.  in GNU BASH and GNU EMACS.  It is somewhat compatible however.)
  238. 2 comment
  239. ?comments
  240.  Comments are supported as follows: a # may appear in most places in a line
  241.  and GNUPLOT will ignore the rest of the line. It will not have this
  242.  effect inside quotes, inside numbers (including complex numbers), inside
  243.  command substitutions, etc. In short, it works anywhere it makes sense
  244.  to work.
  245. 2 environment
  246. ?environment
  247.  A number of shell environment variables are understood by GNUPLOT.
  248.  None of these are required, but may be useful.
  249.  
  250.  If GNUTERM is defined, it is used as the name of the terminal type to
  251.  be used. This overrides any terminal type sensed by GNUPLOT on start
  252.  up, but is itself overridden by the .gnuplot (or equivalent) start-up
  253.  file (see `start-up`), and of course by later explicit changes.
  254.  
  255.  On Unix, AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUHELP may be defined
  256.  to be the pathname of the HELP file (gnuplot.gih).
  257.  
  258.  On VMS, the symbol GNUPLOT$HELP should be defined as the name of
  259.  the help library for GNUPLOT.
  260.  
  261.  On Unix, HOME is used as the name of a directory to search for
  262.  a .gnuplot file if none is found in the current directory.
  263.  On AmigaDOS, AtariTOS, MS-DOS and OS/2, GNUPLOT is used. On VMS, SYS$LOGIN:
  264.  is used. See `help start-up`.
  265.  
  266.  On Unix, PAGER is used as an output filter for help messages.
  267.  
  268.  On Unix, AtariTOS and AmigaDOS, SHELL is used for the `shell` command.
  269.  On MS-DOS and OS/2, COMSPEC is used for the `shell` command.
  270.  
  271.  On AmigaDOS, GNUFONT is used for the screen font.  For example:
  272.  "setenv GNUFONT sapphire/14".
  273.  
  274.  On MS-DOS, if the BGI interface is used, the variable `BGI` is used to point
  275.  to the full path of the BGI drivers directory. Furthermore SVGA is used to
  276.  name the Super VGA BGI driver in 800x600 res., and its mode of operation
  277.  as 'Name.Mode'.
  278.  E.g., if the Super VGA driver is C:\TC\BGI\SVGADRV.BGI and mode 3 is
  279.  used for 800x600 res., then: 'set BGI=C:\TC\BGI' and 'set SVGA=SVGADRV.3'.
  280. 2 exit
  281. ?exit
  282. ?quit
  283.  The commands `exit` and `quit` and the END-OF-FILE character
  284.  will exit GNUPLOT. All these commands will clear the output device
  285.  (as the `clear` command does) before exiting.
  286. 2 expressions
  287. ?expressions
  288.  In general, any mathematical expression accepted by C, FORTRAN,
  289.  Pascal, or BASIC is valid. The precedence of these operators is
  290.  determined by the specifications of the C programming language.
  291.  White space (spaces and tabs) is ignored inside expressions.
  292.  
  293.  Complex constants may be expressed as the {<real>,<imag>}, where <real>
  294.  and <imag> must be numerical constants. For example, {3,2}
  295.  represents 3 + 2i; {0,1} represents `i` itself. The curly braces
  296.  are explicitly required here.
  297. 2 fit
  298. ?fit
  299.  This implementation incorporates the capabiblity of nonlinear least
  300.  squares fit by using the Marquardt-Levenberg-Algorithm. It may fit
  301.  every user-defined function to any set of data pairs (x,y).
  302.  x, y and the function's return type MUST be real! Any variable occuring
  303.  in the function body may serve as fit parameter (fitting functions without
  304.  adjustable parameters make no sense). The syntax is:
  305.  
  306.     fit <function> <datafile> {using x:y{:dy}} <parameter file>     or
  307.     fit <function> <datafile> {using x:y{:dy}} via <var1>, <var2>, ...
  308.  
  309.  <function> is a previously user-defined function of the form: f(x)
  310.  <datafile> is treated as in the plot-command. The default column for
  311.  x is 1, for y is 2. They may be changed by the `using x:y` mechanism. The
  312.  optional dy specifies a column containing individual uncertainties for
  313.  each y-value. These will then be used as weights during the fit. If they
  314.  aren't given all uncertainties are assumed equally distributed. The start
  315.  parameters may be specified in a (load-) file wherein each line is of the
  316.  form:
  317.     varname = value
  318.  
  319.  (comments, separated by '#' and blank lines are also possible). The form
  320.  
  321.     varname = value       # FIXED
  322.  
  323.  means that the variable is treated as a `fixed parameter` that is initialized
  324.  but will not be adjusted. It is not necessary (but sometimes useful for
  325.  clarity) to specify them at all. The keyword '# FIXED' has to appear in
  326.  exactly this form. The other possibility of specifying start values
  327.  is that the current value of a variable during the GNUPLOT session shall
  328.  serve as start parameter. In this case the syntax including the `via` keyword
  329.  may be used where only the adjustable variables' names must be given.
  330.  
  331.  After each iteration step a detailed info is given about the fit's state
  332.  both on the screen and on a logfile "fit.log". This file will never be erased
  333.  but always appended so that the fit's history isn't lost. After each iteration
  334.  step the fit may be interrupted by pressing a key. Then you have the
  335.  possibility of stopping (and accepting the current parameter values) or
  336.  continuing the fit or of executing a gnuplot command specified by an
  337.  environment variable FIT_SCRIPT. E.g. a plot command or LOADing some file
  338.  may be useful.
  339.  
  340.  Special GNUPLOT variables:
  341.     FIT_INDEX: This variable always contains the current data point number
  342.                during execution starting with 1. You may use it in your fit
  343.                function to implement multiple-branch-fits.
  344.     FIT_SKIP:  You may specify a positive integer to always skip i data points
  345.                during fitting. This increases execution speed by the
  346.                price of less exact results.
  347.     FIT_LIMIT: may be specified to change the default epsilon limit (1e-5).
  348.                When the sum of squared residuals changes between 2 iteration
  349.                steps by less than a factor of this number, the fit is
  350.                considered as 'converged'.
  351.  
  352.   Environment variables:
  353.     FIT_LOG    changes the logfile's path from 'fit.log' (write permission
  354.                is necessary).
  355.     FIT_SCRIPT specifies a command to be executed after an user interrupt
  356.  
  357.   Examples:
  358.     f(x) = a*x**2 + b*x + c
  359.     fit f(x) 'measured.dat' 'start.par'
  360.     fit f(x) 'measured.dat' using 3:7 'start.par'
  361.     fit f(x) 'data/trash.dat' using 1:2:3 via a, b, c
  362.  
  363.   SEE ALSO: update
  364. 3 functions
  365. ?expressions functions
  366. ?functions
  367.  The functions in GNUPLOT are the same as the corresponding functions
  368.  in the Unix math library, except that all functions accept integer,
  369.  real, and complex arguments, unless otherwise noted. The `sgn`
  370.  function is also supported, as in BASIC.
  371. @start table
  372. #Function & Arguments & Returns \\ \hline
  373. %Function@Arguments@Returns
  374. %_
  375. 4 abs
  376. ?expressions functions abs
  377. ?functions abs
  378. ?abs
  379. #abs(x) & any  &  absolute value of {\tt x}, $|x|$; same type \\
  380. #abs(x) & complex &  length of {\tt x}, $\sqrt{{\mbox{real}(x)^{2} +
  381. #\mbox{imag}(x)^{2}}}$ \\
  382. %abs(x)@any@absolute value of x, $|x|$; same type
  383. %abs(x)@complex@length of x, $sqrt{roman real (x) sup 2 + roman imag (x) sup 2}$
  384.  The `abs` function returns the absolute value of its argument. The
  385.  returned value is of the same type as the argument.
  386.  
  387.  For complex arguments, abs(x) is defined as the length of x in the
  388.  complex plane [i.e.,  sqrt(real(x)**2 + imag(x)**2) ].
  389. 4 acos
  390. ?expressions functions acos
  391. ?functions acos
  392. ?acos
  393. #acos(x) & any  & $\cos^{-1} x$ (inverse cosine) in radians \\
  394. %acos(x)@any@$cos sup -1 x$ (inverse cosine) in radians
  395.  The `acos` function returns the arc cosine (inverse cosine) of its
  396.  argument. `acos` returns its argument in radians.
  397. 4 arg
  398. ?expressions functions arg
  399. ?functions arg
  400. ?arg
  401. #arg(x) & complex & the phase of $x$ in radians\\
  402. %arg(x)@complex@the phase of $x$ in radians
  403.  The `arg` function returns the phase of a complex number, in radians.
  404. 4 asin
  405. ?expressions functions asin
  406. ?functions asin
  407. ?asin
  408. #asin(x) & any  & $\sin^{-1} x$ (inverse sin) in radians \\
  409. %asin(x)@any@$sin sup -1 x$ (inverse sin) in radians
  410.  The `asin` function returns the arc sin (inverse sin) of its argument.
  411.  `asin` returns its argument in radians.
  412. 4 atan
  413. ?expressions functions atan
  414. ?functions atan
  415. ?atan
  416. #atan(x) & any  & $\tan^{-1} x$ (inverse tangent) in radians \\
  417. %atan(x)@any@$tan sup -1 x$ (inverse tangent) in radians
  418.  The `atan` function returns the arc tangent (inverse tangent) of its
  419.  argument. `atan` returns its argument in radians.
  420. 4 besj0
  421. ?expressions functions besj0
  422. ?functions besj0
  423. ?besj0
  424. #besj0(x) & radians &  $j_{0}$ Bessel function of $x$ \\
  425. %besj0(x)@radians@$j sub 0$ Bessel function of $x$
  426.  The `besj0` function returns the j0th Bessel function of its argument.
  427.  `besj0` expects its argument to be in radians.
  428. 4 besj1
  429. ?expressions functions besj1
  430. ?functions besj1
  431. ?besj1
  432. #besj1(x) & radians & $j_{1}$ Bessel function of $x$ \\
  433. %besj1(x)@radians@$j sub 1$ Bessel function of $x$
  434.  The `besj1` function returns the j1st Bessel function of its argument.
  435.  `besj1` expects its argument to be in radians.
  436. 4 besy0
  437. ?expressions functions besy0
  438. ?functions besy0
  439. ?besy0
  440. #besy0(x) & radians & $y_{0}$ Bessel function of $x$ \\
  441. %besy0(x)@radians@$y sub 0$ Bessel function of $x$
  442.  The `besy0` function returns the y0th Bessel function of its argument.
  443.  `besy0` expects its argument to be in radians.
  444. 4 besy1
  445. ?expressions functions besy1
  446. ?functions besy1
  447. ?besy1
  448. #besy1(x) & radians & $y_{1}$ Bessel function of $x$ \\
  449. %besy1(x)@radians@$y sub 1$ Bessel function of $x$
  450.  The `besy1` function returns the y1st Bessel function of its argument.
  451.  `besy1` expects its argument to be in radians.
  452. 4 ceil
  453. ?expressions functions ceil
  454. ?functions ceil
  455. ?ceil
  456. #ceil(x) & any & $\lceil x \rceil$, smallest integer not less than $x$
  457. #(real part) \\
  458. %ceil(x)@any@$left ceiling x right ceiling$, smallest integer not less than $x$ (real part)
  459.  The `ceil` function returns the smallest integer that is not less than its
  460.  argument. For complex numbers, `ceil` returns the smallest integer
  461.  not less than the real part of its argument.
  462. 4 cos
  463. ?expressions functions cos
  464. ?functions cos
  465. ?cos
  466. #cos(x) & radians & $\cos x$, cosine of $x$ \\
  467. %cos(x)@radians@$cos~x$, cosine of $x$
  468.  The `cos` function returns the cosine of its argument. `cos` expects its
  469.  argument to be in radians.
  470. 4 cosh
  471. ?expressions functions cosh
  472. ?functions cosh
  473. ?cosh
  474. #cosh(x) & radians & $\cosh x$, hyperbolic cosine of $x$ \\
  475. %cosh(x)@radians@$cosh~x$, hyperbolic cosine of $x$
  476.  The `cosh` function returns the hyperbolic cosine of its argument.
  477.  `cosh` expects its argument to be in radians.
  478. 4 erf
  479. ?expressions functions erf
  480. ?functions erf
  481. ?erf
  482. #erf(x) & any & $\mbox{Erf}(\mbox{real}(x))$,  error function of real($x$) \\
  483. %erf(x)@any@$erf ( roman real (x))$, error function of real ($x$)
  484.  The `erf` function returns the error function of the real part of
  485.  its argument.
  486.  If the argument is a complex value, the imaginary component is ignored.
  487. 4 erfc
  488. ?expressions functions erfc
  489. ?functions erfc
  490. ?erfc
  491. #erfc(x) & any & $\mbox{Erfc}(\mbox{real}(x))$,  1.0 - error function of real($x$) \\
  492. %erfc(x)@any@$erfc ( roman real (x))$, 1.0 - error function of real ($x$)
  493.  The `erfc` function returns 1.0 - the error function of the
  494.  real part of its argument.
  495.  If the argument is a complex value, the imaginary component is ignored.
  496. 4 exp
  497. ?expressions functions exp
  498. ?functions exp
  499. ?exp
  500. #exp(x) & any & $e^{x}$,  exponential function of $x$ \\
  501. %exp(x)@any@$e sup x$, exponential function of $x$
  502.  The `exp` function returns the exponential function of its argument
  503.  (`e` raised to the power of its argument).
  504. 4 floor
  505. ?expressions functions floor
  506. ?functions floor
  507. ?floor
  508. #floor(x) & any & $\lfloor x \rfloor$,  largest integer not greater
  509. #than $x$ (real part) \\
  510. %floor(x)@any@$left floor x right floor$, largest integer not greater than $x$ (real part)
  511.  The `floor` function returns the largest integer not greater than its
  512.  argument. For complex numbers, `floor` returns the largest
  513.  integer not greater than the real part of its argument.
  514. 4 gamma
  515. ?expressions functions gamma
  516. ?functions gamma
  517. ?gamma
  518. #gamma(x) & any & $\mbox{Gamma}(\mbox{real}(x))$,  gamma function of real($x$) \\
  519. %gamma(x)@any@$GAMMA ( roman real (x))$, gamma function of real ($x$)
  520.  The `gamma` function returns the gamma function of the real part of
  521.  its argument. For integer n, gamma(n+1) = n! .
  522.  If the argument is a complex value, the imaginary component is ignored.
  523. 4 ibeta
  524. ?expressions functions ibeta
  525. ?functions ibeta
  526. ?ibeta
  527. #ibeta(p,q,x) & any & $\mbox{Ibeta}(\mbox{real}(p,q,x))$,  ibeta function of real($p$,$q$,$x$) \\
  528. %ibeta(p,q,x)@any@$Ibeta ( roman real (p,q,x))$, ibeta function of real ($p$,$q$,$x$)
  529.  The `ibeta` function returns the incomplete beta function of the real
  530.  parts of its arguments. p, q > 0 and x in [0:1]
  531.  If the arguments are complex, the imaginary components are ignored.
  532. 4 inverf
  533. ?expressions functions inverf
  534. ?functions inverf
  535. ?inverf
  536. #inverf(x) & any &  inverse error function of real($x$)  \\
  537. %inverf(x)@any@inverse error function real($x$)
  538.  The `inverf` function returns the inverse error function of the real
  539.  part of its argument.
  540. 4 igamma
  541. ?expressions functions igamma
  542. ?functions igamma
  543. ?igamma
  544. #igamma(a,x) & any & $\mbox{Igamma}(\mbox{real}(a,x))$,  igamma function of real($a$,$x$) \\
  545. %igamma(a,x)@any@$Igamma ( roman real (a,x))$, igamma function of real ($a$,$x$)
  546.  The `igamma` function returns the incomplete gamma function of the real
  547.  parts of its arguments. a > 0 and x >= 0
  548.  If the arguments are complex, the imaginary components are ignored.
  549. 4 imag
  550. ?expressions functions imag
  551. ?functions imag
  552. ?imag
  553. #imag(x) & complex &  imaginary part of $x$ as a real number \\
  554. %imag(x)@complex@imaginary part of $x$ as a real number
  555.  The `imag` function returns the imaginary part of its argument as a
  556.  real number.
  557. 4 invnorm
  558. ?expressions functions invnorm
  559. ?functions invnorm
  560. ?invnorm
  561. #invnorm(x) & any &  inverse normal distribution function of real($x$)  \\
  562. %invnorm(x)@any@inverse normal distribution function real($x$)
  563.  The `invnorm` function returns the inverse normal distribution function
  564.  of the real part of its argument.
  565. 4 int
  566. ?expressions functions int
  567. ?functions int
  568. ?int
  569. #int(x) & real &  integer part of $x$, truncated toward zero \\
  570. %int(x)@real@integer part of $x,$ truncated toward zero
  571.  The `int` function returns the integer part of its argument, truncated
  572.  toward zero.
  573. 4 lgamma
  574. ?expressions functions lgamma
  575. ?functions lgamma
  576. ?lgamma
  577. #lgamma(x) & any & $\mbox{Lgamma}(\mbox{real}(x))$,  lgamma function of real($x$) \\
  578. %lgamma(x)@any@$Lgamma ( roman real (x))$, lgamma function of real ($x$)
  579.  The `lgamma` function returns the natural logarithm of the gamma
  580.  function of the real part of its argument.
  581.  If the argument is a complex value, the imaginary component is ignored.
  582. 4 log
  583. ?expressions functions log
  584. ?functions log
  585. ?log
  586. #log(x) & any & $\log_{e} x$,  natural logarithm (base $e$) of $x$ \\
  587. %log(x)@any@$ln~x$, natural logarithm (base $e$) of $x$
  588.  The `log` function returns the natural logarithm (base `e`) of its
  589.  argument.
  590. 4 log10
  591. ?expressions functions log10
  592. ?functions log10
  593. ?log10
  594. #log10(x) & any & $\log_{10} x$,  logarithm (base $10$) of $x$ \\
  595. %log10(x)@any@${log sub 10}~x$, logarithm (base $10$) of $x$
  596.  The `log10` function returns the logarithm (base 10) of its argument.
  597. 4 norm
  598. ?expressions functions norm
  599. ?functions norm
  600. ?norm
  601. #norm(x) & any & normal distribution (Gaussian) function of real($x$) \\
  602. %norm(x)@any@$norm(x),$ normal distribution function of real($x$)
  603.  The `norm` function returns the normal distribution function
  604.  (or Gaussian) of the real part of its argument.
  605. 4 rand
  606. ?expressions functions rand
  607. ?functions rand
  608. ?rand
  609. #rand(x) & any & $\mbox{Rand}(\mbox{real}(x))$,  pseudo random number generator \\
  610. %rand(x)@any@$rand ( roman real (x))$, pseudo random number generator
  611.  The `rand` function returns a pseudo random number in the interval [0:1]
  612.  using the real part of its argument as a seed. If seed < 0 the sequence
  613.  is (re)initialized.
  614.  If the argument is a complex value, the imaginary component is ignored.
  615. 4 real
  616. ?expressions functions real
  617. ?functions real
  618. ?real
  619. #real(x) & any &  real part of $x$ \\
  620. %real(x)@any@real part of $x$
  621.  The `real` function returns the real part of its argument.
  622. 4 sgn
  623. ?expressions functions sgn
  624. ?functions sgn
  625. ?sgn
  626. #sgn(x) & any & 1 if $x>0$, -1 if $x<0$, 0 if $x=0$. imag($x$) ignored \\
  627. %sgn(x)@any@1 if $x > 0$, -1 if $x < 0$, 0 if $x = 0$. $roman imag (x)$ ignored
  628.  The `sgn` function returns 1 if its argument is positive, -1 if its
  629.  argument is negative, and 0 if its argument is 0. If the argument
  630.  is a complex value, the imaginary component is ignored.
  631. 4 sin
  632. ?expressions functions sin
  633. ?functions sin
  634. ?sin
  635. #sin(x) & radians & $\sin x$, sine of $x$ \\
  636. %sin(x)@radians@$sin~x$, sine of $x$
  637.  The `sin` function returns the sine of its argument. `sin` expects its
  638.  argument to be in radians.
  639. 4 sinh
  640. ?expressions functions sinh
  641. ?functions sinh
  642. ?sinh
  643. #sinh(x) & radians & $\sinh x$, hyperbolic sine $x$ \\
  644. %sinh(x)@radians@$sinh~x$, hyperbolic sine $x$
  645.  The `sinh` function returns the hyperbolic sine of its argument. `sinh`
  646.  expects its argument to be in radians.
  647. 4 sqrt
  648. ?expressions functions sqrt
  649. ?functions sqrt
  650. ?sqrt
  651. #sqrt(x) & any & $\sqrt{x}$,  square root of $x$ \\
  652. %sqrt(x)@any@$sqrt x $, square root of $x$
  653.  The `sqrt` function returns the square root of its argument.
  654. 4 tan
  655. ?expressions functions tan
  656. ?functions tan
  657. ?tan
  658. #tan(x) & radians & $\tan x$,  tangent of $x$ \\
  659. %tan(x)@radians@$tan~x$, tangent of $x$
  660.  The `tan` function returns the tangent of its argument. `tan` expects
  661.  its argument to be in radians.
  662. 4 tanh
  663. ?expressions functions tanh
  664. ?functions tanh
  665. ?tanh
  666. #tanh(x) & radians & $\tanh x$, hyperbolic tangent of $x$\\
  667. %tanh(x)@radians@$tanh~x$, hyperbolic tangent of $x$
  668.  The `tanh` function returns the hyperbolic tangent of its argument.
  669.  `tanh` expects its argument to be in radians.
  670. @end table
  671. 3 operators
  672. ?expressions operators
  673. ?operators
  674.  The operators in GNUPLOT are the same as the corresponding operators
  675.  in the C programming language, except that all operators accept
  676.  integer, real, and complex arguments, unless otherwise noted.
  677.  The ** operator (exponentiation) is supported, as in FORTRAN.
  678.  
  679.  Parentheses may be used to change order of evaluation.
  680. 4 binary
  681. ?expressions operators binary
  682. ?operators binary
  683. ?binary
  684.  The following is a list of all the binary operators and their
  685.  usages:
  686.  
  687. @start table - first is interactive cleartext form
  688.   Symbol      Example      Explanation
  689.    **          a**b          exponentiation
  690.    *           a*b           multiplication
  691.    /           a/b           division
  692.    %           a%b         * modulo
  693.    +           a+b           addition
  694.    -           a-b           subtraction
  695.    ==          a==b          equality
  696.    !=          a!=b          inequality
  697.    &           a&b         * bitwise AND
  698.    ^           a^b         * bitwise exclusive OR
  699.    |           a|b         * bitwise inclusive OR
  700.    &&          a&&b        * logical AND
  701.    ||          a||b        * logical OR
  702.    ?:          a?b:c       * ternary operation
  703. #\multicolumn{3}{|c|}{Binary Operators} \\
  704. #Symbol & Example & Explanation \\ \hline
  705. #\verb~**~ & \verb~a**b~ & exponentiation\\
  706. #\verb~*~ & \verb~a*b~ & multiplication\\
  707. #\verb~/~ & \verb~a/b~ & division\\
  708. #\verb~%~ & \verb~a%b~ & * modulo\\
  709. #\verb~+~ & \verb~a+b~ & addition\\
  710. #\verb~-~ & \verb~a-b~ & subtraction\\
  711. #\verb~==~ & \verb~a==b~ & equality\\
  712. #\verb~!=~ & \verb~a!=b~ & inequality\\
  713. #\verb~&~ & \verb~a&b~ & * bitwise AND\\
  714. #\verb~^~ & \verb~a^b~ & * bitwise exclusive OR\\
  715. #\verb~|~ & \verb~a|b~ & * bitwise inclusive OR\\
  716. #\verb~&&~ & \verb~a&&b~ & * logical AND\\
  717. #\verb~||~ & \verb~a||b~ & * logical OR\\
  718. #\verb~?:~ & \verb~a?b:c~ & * ternary operation\\
  719. %Symbol@Example@Explanation
  720. %_
  721. %**@a**b@exponentiation
  722. %*@a*b@multiplication
  723. %/@a/b@division
  724. %%@a%b@* modulo
  725. %+@a+b@addition
  726. %-@a-b@subtraction
  727. %==@a==b@equality
  728. %!=@a!=b@inequality
  729. %&@a&b@* bitwise AND
  730. %^@a^b@* bitwise exclusive OR
  731. %|@a|b@* bitwise inclusive OR
  732. %&&@a&&b@* logical AND
  733. %||@a||b@* logical OR
  734. %?:@a?b:c@* ternary operation
  735.  
  736. @end table
  737.  (*) Starred explanations indicate that the operator requires
  738.  integer arguments.
  739.  
  740.  Logical AND (&&) and OR (||) short-circuit the way they do in C.
  741.  That is, the second && operand is not evaluated if the first is
  742.  false; the second || operand is not evaluated if the first is true.
  743.  
  744.  The ternary operator evaluates its first argument (a). If it is
  745.  true (non-zero) the second argument (b) is evaluated and returned,
  746.  otherwise the third argument (c) is evaluated and returned.
  747. 4 unary
  748. ?expressions operators unary
  749. ?operators unary
  750. ?unary
  751.  The following is a list of all the unary operators and their
  752.  usages:
  753.  
  754. @start table - first is interactive cleartext form
  755.   Symbol     Example      Explanation
  756.    -           -a          unary minus
  757.    ~           ~a        * one's complement
  758.    !           !a        * logical negation
  759.    !           a!        * factorial
  760. #\multicolumn{3}{|c|}{Unary Operators}\\
  761. #Symbol & Example & Explanation \\ \hline
  762. #\verb@-@ & \verb@-a@ & unary minus \\
  763. #\verb@~@ & \verb@~a@ & * one's complement \\
  764. #\verb@!@ & \verb@!a@ & * logical negation \\
  765. #\verb@!@ & \verb@a!@ & * factorial \\
  766. %-@-a@unary minus
  767. %~@~a@* one's complement
  768. %!@!a@* logical negation
  769. %!@a!@* factorial
  770.  
  771. @end table
  772.  (*) Starred explanations indicate that the operator requires an
  773.  integer argument.
  774.  
  775.  The factorial operator returns a real number to allow a greater range.
  776. 2 help
  777. ?help
  778.  The `help` command displays on-line help. To specify information on a
  779.  particular topic use the syntax:
  780.  
  781.          help {<topic>}
  782.  
  783.  If <topic> is not specified, a short message is printed about
  784.  GNUPLOT. After help for the requested topic is given, help for a
  785.  subtopic may be requested by typing its name, extending the help
  786.  request. After that subtopic has been printed, the request may be
  787.  extended again, or simply pressing return goes back one level to the
  788.  previous topic. Eventually, the GNUPLOT command line will return.
  789. 2 load
  790. ?load
  791.  The `load` command executes each line of the specified input file as
  792.  if it had been typed in interactively. Files created by the `save`
  793.  command can later be `load`ed. Any text file containing valid
  794.  commands can be created and then executed by the `load` command.
  795.  Files being `load`ed may themselves contain `load` commands. See
  796.  `comment` for information about comments in commands.
  797.  
  798.  The `load` command must be the last command on the line.
  799.  
  800.  Syntax:
  801.          load "<input-file>"
  802.  
  803.  The name of the input file must be enclosed in quotes.
  804.  
  805.  Examples:
  806.  
  807.          load 'work.gnu'
  808.          load "func.dat"
  809.  
  810.  The `load` command is performed implicitly on any file names given as
  811.  arguments to GNUPLOT. These are loaded in the order specified, and
  812.  then GNUPLOT exits.
  813. 2 pause
  814. ?pause
  815.  The `pause` command displays any text associated with the command and
  816.  then waits a specified amount of time or until the carriage return is
  817.  pressed.  `pause` is especially useful in conjunction with `load` files.
  818.  
  819.  Syntax:
  820.          pause <time> {"<string>"}
  821.  
  822.  <time> may be any integer constant or expression. Choosing -1 will
  823.  wait until a carriage return is hit, zero (0) won't pause at all, and
  824.  a positive integer will wait the specified number of seconds.
  825.  
  826.  Note: Since `pause` is not part of the plot it may interact with
  827.  different device drivers differently (depending upon how text and
  828.  graphics are mixed).
  829.  
  830.  Examples:
  831.          pause -1    # Wait until a carriage return is hit
  832.          pause 3     # Wait three seconds
  833.          pause -1  "Hit return to continue"
  834.          pause 10  "Isn't this pretty?  It's a cubic-spline."
  835.  
  836. 2 plot
  837. ?plot
  838. ?splot
  839.  `plot` and `splot` are the primary commands of the program. They plot
  840.  functions and data in many, many ways. `plot` is used to plot 2-d
  841.  functions and data, while `splot` plots 3-d surfaces and data.
  842.  
  843.  Syntax:
  844.  
  845.         plot {ranges} {<function> | {"<datafile>" {using ...}}}
  846.                      {title} {style} {, <function> {title} {style}...}
  847.  
  848.         splot {ranges} {<function> | {"<datafile>" {index i} {using ...}}}
  849.                      {title} {style} {, <function> {title} {style}...}
  850.  
  851.  where either a <function> or the name of a data file enclosed in quotes is
  852.  supplied.  A function is a mathematical expression, or a pair (`plot`) or
  853.  triple (`splot`) of mathematical expressions in the case of parametric
  854.  functions.  User-defined functions and variables may also be defined here.
  855.  
  856.  `plot` and `splot` commands can be as simple as
  857.  
  858.          plot sin(x)
  859.  
  860.  and
  861.  
  862.          splot x * y
  863.  
  864.  or as complex as (!)
  865.  
  866.   plot [t=1:10] [-pi:pi*2] tan(t), "data.1" using 2:3 with lines,
  867.         t**2 with points
  868. 3 data-file
  869. ?plot data-file
  870. ?plot datafile
  871. ?splot data-file
  872. ?splot datafile
  873. ?data-file
  874. ?datafile
  875. ?data
  876.  Discrete data contained in a file can be displayed by specifying the
  877.  name of the data file (enclosed in quotes) on the `plot` or `splot`
  878.  command line. Data files should contain one data point per line.
  879.  Lines beginning with # (or ! on VMS) will be treated as comments
  880.  and ignored. For `plot`s, each data point represents an (x,y)
  881.  pair. For `splot`s, each point is an (x,y,z) triple. For `plot`s with
  882.  error bars (see `plot errorbars`), each data point is either
  883.  (x,y,ydelta) or (x,y,ylow,yhigh). In all cases, the numbers on each
  884.  line of a data file must be separated by blank space. This blank
  885.  space divides each line into columns.
  886.  
  887.  For `plot`s the x value may be omitted, and for `splot`s the x
  888.  and y values may be omitted. In either case the omitted values are
  889.  assigned the current coordinate number. Coordinate numbers start at 0
  890.  and are incremented for each data point read.
  891.  
  892.  To specify other formats, see `plot datafile using`.
  893.  
  894.  In the `plot` command, blank lines in the data file cause a break in
  895.  the plot. There will be no line drawn between the preceding and
  896.  following points if the plot style is `lines` or `linespoints` (see
  897.  `plot style`). This does not change the plot style, as would plotting
  898.  the data as separate curves.
  899.  
  900.  This example compares the data in the file population.dat to a
  901.  theoretical curve:
  902.  
  903.          pop(x) = 103*exp((1965-x)/10)
  904.          plot [1960:1990] 'population.dat', pop(x)
  905.  
  906.  The file population.dat might contain:
  907.  
  908.          # Gnu population in Antarctica since 1965
  909.          1965   103
  910.          1970   55
  911.          1975   34
  912.          1980   24
  913.          1985   10
  914.  
  915.  When a data file is plotted, `samples` and `isosamples` are ignored.
  916.  Curves plotted using the `plot` command are automatically extended to
  917.  hold the entire curve. Similarly grid data plotted using the `splot`
  918.  command is automatically extended, using the assumption that isolines
  919.  are separated by blank lines (a line with only a CR/LF in it).
  920.  
  921.  Implicitly, there are two types of 3-d datafiles. If all the isolines
  922.  are of the same length, the data is assumed to be a grid data, i.e.,
  923.  the data has a grid topology. Cross isolines in the other parametric
  924.  direction (the ith cross isoline passes through the ith point of all the
  925.  provided isolines) will also be drawn for grid data. (Note contouring
  926.  is available for grid data only.) If all the isolines are not of the
  927.  same length, no cross isolines will be drawn and contouring that data
  928.  is impossible.
  929.  
  930.  For splot, data files may contain more than one mesh and by default
  931.  all meshes are plotted. Meshes are separated from each other, in the
  932.  file, by double blank lines. To control and splot a single mesh from
  933.  a multi mesh file, use the index modifier. See `splot index` for more.
  934.  
  935.  For splot if 3-d datafile and using format (see `splot datafile using`)
  936.  specify only z (height field), a non parametric mode must be specified.
  937.  If, on the other hand, x, y, and z are all specified, a parametric
  938.  mode should be selected (see `set parametric`) since data is defining a
  939.  parametric surface.
  940.  
  941.  A simple example of plotting a 3-d data file is
  942.  
  943.          set parametric
  944.          splot 'glass.dat'
  945.  
  946.  or
  947.  
  948.          set noparametric
  949.          splot 'datafile.dat'
  950.  
  951.  where the file datafile.dat might contain:
  952.  
  953.          # The valley of the Gnu.
  954.          10
  955.          10
  956.          10
  957.  
  958.          10
  959.          5
  960.          10
  961.  
  962.          10
  963.          1
  964.          10
  965.  
  966.          10
  967.          0
  968.          10
  969.  
  970.  Note datafile.dat defines a 4 by 3 grid ( 4 rows of 3 points each ).
  971.  Rows are separated by blank lines.
  972.  
  973.  On some computer systems with a popen function (UNIX), the datafile
  974.  can be piped through a shell command by starting the file name
  975.  with a '<'.  For example:
  976.  
  977.          pop(x) = 103*exp(-x/10)
  978.          plot '< awk "{print $1-1965, $2}" population.dat', pop(x)
  979.  
  980.  would plot the same information as the first population example
  981.  but with years since 1965 as the x axis.  If you want to execute
  982.  this example, you have to delete all comments from the data file
  983.  above or substitute the following command for the first part of the
  984.  command above (the part up to the comma):
  985.  
  986.          plot '< awk "$0 !~ /^#/ {print $1-1965, $2}" population.dat'
  987.  
  988.  It is also possible to apply a single function to the "y" value only,
  989.  e.g.
  990.  
  991.          plot 'population.dat' thru p(x)
  992.  
  993.  For more information about 3-d plotting, see `splot`.
  994. 4 using
  995. ?plot data-file using
  996. ?plot datafile using
  997. ?splot data-file using
  998. ?splot datafile using
  999. ?using
  1000.  The format of data within a file can be selected with the `using`
  1001.  option. An explicit scanf string can be used, or simpler column
  1002.  choices can be made.
  1003.  
  1004.  Syntax:
  1005.  
  1006.          plot "datafile" { using { <ycol> |
  1007.                                    <xcol>:<ycol> |
  1008.                                    <xcol>:<ycol>:<ydelta> |
  1009.                                    <xcol>:<ycol>:<ylow>:<yhigh> |
  1010.                                    <xcol>:<ycol>:<ylow>:<yhigh>:<boxwidth> }
  1011.                                  {"<scanf string>"} } ...
  1012.  
  1013.  and
  1014.  
  1015.          splot "datafile" { using { <xcol>:<ycol>:<zcol> | <zcol> }
  1016.                                   {"<scanf string>"} } ...
  1017.  
  1018.  <xcol>, <ycol>, and <zcol> explicitly select the columns to plot from
  1019.  a space or tab separated multicolumn data file. If only <ycol> is
  1020.  selected for `plot`, <xcol> defaults to 1. If only <zcol> is selected
  1021.  for `splot`, then only that column is read from the file. An <xcol> of
  1022.  0 forces <ycol> to be plotted versus its coordinate number. <xcol>,
  1023.  <ycol>, and <zcol> can be entered as constants or expressions.
  1024.  
  1025.  If errorbars (see also `plot errorbars`) are used for `plot`s,
  1026.  ydelta (for example, a +/- error) should be provided as the third
  1027.  column, or ylow and yhigh as third and fourth columns.
  1028.  
  1029.  If boxes or boxerrorbars are used for `plot`s, a fifth column to
  1030.  specify the width of the box may be given.  This implies that columns
  1031.  three and four must also be provided even if they are not used.
  1032.  If you want to plot boxes from a data file with three columns,
  1033.  set ylow and yhigh to y using the following command:
  1034.          plot "datafile" using 1:2:2:2:3 with boxes
  1035.  
  1036.  Scanf strings override any <xcol>:<ycol>(:<zcol>) choices, except for
  1037.  ordering of input, e.g.,
  1038.          plot "datafile" using 2:1 "%f%*f%f"
  1039.  causes the first column to be y and the third column to be x.
  1040.  
  1041.  If the scanf string is omitted, the default is generated based on the
  1042.  <xcol>:<ycol>(:<zcol>) choices. If the `using` option is omitted, "%f%f"
  1043.  is used for `plot` ("%f%f%f%f" for `errorbars` `plot`s) and "%f%f%f" is
  1044.  used for `splot`.
  1045.  
  1046.  Examples:
  1047.  
  1048.          plot "MyData" using "%*f%f%*20[^\n]%f" with lines
  1049.  
  1050.  Data are read from the file "MyData" using the format
  1051.  "%*f%f%*20[^\n]%f". The meaning of this format is: "%*f" ignore the
  1052.  first number, "%f" then read in the second and assign to x,
  1053.  "%*20[^\n]" then ignore 20 non-newline characters, "%f" then read in
  1054.  the y value.
  1055.  
  1056.          n=3;
  1057.          plot "MyData", "MyData" using n
  1058.  
  1059.  causes GNUPLOT to plot the second and third columns of MyData versus
  1060.  the first column. The command 'n=4; replot' would then plot the second
  1061.  and fourth columns of MyData versus the first column.
  1062.  
  1063.          splot "glass.dat" using 1
  1064.  
  1065.  causes GNUPLOT to plot the first coordinate of the points of glass.dat
  1066.  as the z coordinate while ignoring the other two coordinates.
  1067.  
  1068.  Note: GNUPLOT first reads a line of the data file into a buffer and
  1069.  then does a
  1070.          sscanf(input_buffer, scanf_string, &x, &y{, &z});
  1071.  where 'x', 'y', and 'z' are of type 'float'. Any scanf string that
  1072.  specifies two (three for `splot`, three or four for `errorbars`) float
  1073.  numbers may be used.
  1074. 3 errorbars
  1075. ?plot errorbars
  1076. ?errorbars
  1077.  Error bars are supported for 2-d data file plots by reading one or
  1078.  two additional columns specifying ydelta or ylow and yhigh
  1079.  respectively. No support exists for x error bars or any error bars
  1080.  for `splot`s.
  1081.  
  1082.  In the default situation, GNUPLOT expects to see three or four
  1083.  numbers on each line of the data file, either (x, y, ydelta) or
  1084.  (x, y, ylow, yhigh). The x coordinate must be specified. The order
  1085.  of the numbers must be exactly as given above. Data files in this
  1086.  format can easily be plotted with error bars:
  1087.  
  1088.          plot "data.dat" with errorbars
  1089.  
  1090.  The error bar is a vertical line plotted from (x, ylow) to (x,
  1091.  yhigh). If ydelta is specified instead of ylow and yhigh,
  1092.  ylow=y-ydelta and yhigh=y+ydelta are derived. If there
  1093.  are only two numbers on the line, yhigh and ylow are both set to
  1094.  y. To get lines plotted between the data points, `plot` the
  1095.  data file twice, once with errorbars and once with lines.
  1096.  
  1097.  If y autoscaling is on, the y range will be adjusted to fit the
  1098.  error bars.
  1099.  
  1100.  The `using` option may be used to specify how columns of the data file
  1101.  are to be assigned to x, y, ydelta, ylow, and yhigh. The x column must
  1102.  be provided and both the x and y columns must appear before the
  1103.  errorbar columns. If three column numbers are given, they are x, y,
  1104.  and ydelta. If four columns are given, they are x, y, ylow, and
  1105.  yhigh.
  1106.  
  1107.  Examples:
  1108.  
  1109.          plot "data.dat" using 1:2:3:4 with errorbars
  1110.          plot "data.dat" using 3:2:6 with errorbars
  1111.          plot "data.dat" using 3:4:8:7 with errorbars
  1112.  
  1113.  The first example reads, x, y, ylow, and yhigh, from columns 1, 2, 3,
  1114.  and 4. This is equivalent to the default.  The second example reads x
  1115.  from the third column, y from second and ydelta from the sixth column.
  1116.  The third example reads x from the third column, y from the fourth,
  1117.  ylow from the eighth, and yhigh from seventh columns.
  1118.  
  1119.  See also `plot using` and `plot style`.
  1120. 3 parametric
  1121. ?plot parametric
  1122. ?splot parametric
  1123. ?parametric
  1124.  When in parametric mode (`set parametric`) mathematical expressions must
  1125.  be given in pairs for `plot` and in triplets for `splot`:
  1126.          plot sin(t),t**2
  1127.  or
  1128.          splot cos(u)*cos(v),cos(u)*sin(v),sin(u)
  1129.  
  1130.  Data files are plotted as before, except any preceding parametric
  1131.  function must be fully specified before a data file is given as a
  1132.  plot. In other words, the x parametric function (sin(t) above) and
  1133.  the y parametric function (t**2 above) must not be interrupted with
  1134.  any modifiers or data functions; doing so will generate a syntax error
  1135.  stating that the parametric function is not fully specified.
  1136.  
  1137.  Ranges take on a different meaning when in parametric mode. The first
  1138.  range on the `plot` command is the `trange`, the next is the `xrange`,
  1139.  and the last is the `yrange`. For `splot` the order is `urange`,
  1140.  `vrange`, `xrange`, `yrange`, and finally `zrange`. The following
  1141.  `plot` command shows setting the `trange` to [-pi:pi], the `xrange` to
  1142.  [-1.3:1.3] and the `yrange` to [-1:1] for the duration of the plot:
  1143.          plot [-pi:pi] [-1.3:1.3] [-1:1] sin(t),t**2
  1144.  
  1145.  Other modifiers, such as `with` and `title`, may be specified only
  1146.  after the parametric function has been completed:
  1147.          plot sin(t),t**2 title 'Parametric example' with linespoints
  1148.  
  1149.  
  1150. 3 ranges
  1151. ?splot ranges
  1152. ?plot ranges
  1153. ?ranges
  1154.  The optional range specifies the region of the plot that will be
  1155.  displayed.
  1156.  
  1157.  Ranges may be provided on the `plot` and `splot` command line and
  1158.  affect only that plot, or in the `set xrange`, `set yrange`, etc.,
  1159.  commands, to change the default ranges for future plots.
  1160.  
  1161.  Syntax:
  1162.          [{<dummy-var> =} {<xmin> : <xmax>}] { [{<ymin> : <ymax>}] }
  1163.  
  1164.  where <dummy-var> is the independent variable (the defaults are x and
  1165.  y, but this may be changed with `set dummy`) and the min and max
  1166.  terms can be constant expressions.
  1167.  
  1168.  Both the min and max terms are optional. The ':' is also optional
  1169.  if neither a min nor a max term is specified. This allows '[ ]' to
  1170.  be used as a null range specification.
  1171.  
  1172.  Specifying a range in the `plot` command line turns autoscaling for
  1173.  that axis off for that plot. Using one of the `set` range commands
  1174.  turns autoscaling off for that axis for future plots, unless changed
  1175.  later. (See `set autoscale`).
  1176.  
  1177.  Examples:
  1178.  
  1179.  This uses the current ranges:
  1180.          plot cos(x)
  1181.  
  1182.  This sets the x range only:
  1183.          plot [-10:30] sin(pi*x)/(pi*x)
  1184.  
  1185.  This is the same, but uses t as the dummy-variable:
  1186.          plot [t = -10 :30]  sin(pi*t)/(pi*t)
  1187.  
  1188.  This sets both the x and y ranges:
  1189.          plot [-pi:pi] [-3:3]  tan(x), 1/x
  1190.  
  1191.  This sets only the y range, and turns off autoscaling on both axes:
  1192.          plot [ ] [-2:sin(5)*-8] sin(x)**besj0(x)
  1193.  
  1194.  This sets xmax and ymin only:
  1195.          plot [:200] [-pi:]  exp(sin(x))
  1196.  
  1197.  This sets the x, y, and z ranges:
  1198.          splot [0:3] [1:4] [-1:1] x*y
  1199. 3 index
  1200. ?splot index
  1201. ?index
  1202.  Splotting of multi mesh data files can be controlled via the index modifier.
  1203.  A data file can contain more than one mesh, and in that case all meshes
  1204.  in the file will be splotted by default. Meshes are separated from each
  1205.  other, in the data file, by double blank lines. To splot a single mesh in
  1206.  a multi mesh file use the index modifier which specify which mesh to splot.
  1207.  First mesh is mesh 0.
  1208.  
  1209.  Example:
  1210.  
  1211.  splot "data1" index 2 with points
  1212.  
  1213.  will splot the third mesh in file data1 with points.
  1214. 3 style
  1215. ?plot style
  1216. ?splot style
  1217. ?style
  1218. ?plot with
  1219. ?with
  1220.  Plots may be displayed in one of eight styles: `lines`, `points`,
  1221.  `linespoints`, `impulses`, `dots`, `errorbars`, `steps`, `boxes`, or
  1222.  `boxerrorbars`.  The `lines` style connects adjacent points with lines.
  1223.  The `points` style displays a small symbol at each point.
  1224.  The `linespoints` style does both `lines` and `points`.
  1225.  The `impulses` style displays a vertical line from the x axis
  1226.  (or from the grid base for `splot`) to each point. The `dots` style
  1227.  plots a tiny dot at each point; this is useful for
  1228.  scatter plots with many points.
  1229.  
  1230.  The `errorbars` style is only relevant to 2-d data file plotting. It
  1231.  is treated like `points` for `splot`s and function `plot`s. For data
  1232.  `plot`s, `errorbars` is like `points`, except that a vertical error
  1233.  bar is also drawn: for each point (x,y), a line is drawn from
  1234.  (x,ylow) to (x,yhigh). A tic mark is placed at the ends of the error
  1235.  bar. The ylow and yhigh values are read from the data file's columns,
  1236.  as specified with the `using` option to plot. See `plot errorbars` for
  1237.  more information.
  1238.  
  1239.  The `boxes` style is only relevant to 2-d plotting.  Another style
  1240.  called `boxerrorbars` is also available and is only relevant to 2-d
  1241.  data file plotting.  This style is a combination of the `boxes` and
  1242.  `errorbars` styles.  The `boxes` style draws a box centred about
  1243.  the given x coordinate from the yaxis to the given y coordinate.
  1244.  The width of the box is obtained in one of three ways.  First, if a 
  1245.  data file has a fifth column, this will be used to set the width of 
  1246.  the box. Columns 3 and 4 (for `boxerrorbars`) are necessary but
  1247.  ignored in this instance.  Secondly, if a width has been set using 
  1248.  the `set boxwidth` command, this will be used.  Otherwise the width 
  1249.  of each box will be calculated automatically so that it touches the
  1250.  adjacent boxes.
  1251.  
  1252.  The `steps` style is only relevant to 2-d plotting.  This style
  1253.  connects consecutive points with two line segments: the first
  1254.  from (x1,y1) to (x2,y1) and the second from (x2,y1) to (x2,y2).
  1255.  
  1256.  Default styles are chosen with the `set function style` and
  1257.  `set data style` commands.
  1258.  
  1259.  By default, each function and data file will use a different
  1260.  line type and point type, up to the maximum number of available
  1261.  types. All terminal drivers support at least six different point
  1262.  types, and re-use them, in order, if more than six are required.
  1263.  The LaTeX driver supplies an additional six point types (all variants
  1264.  of a circle), and thus will only repeat after twelve curves are
  1265.  plotted with points.
  1266.  
  1267.  If desired, the style and (optionally) the line type and point type
  1268.  used for a curve can be specified.
  1269.  
  1270.  Syntax:
  1271.  
  1272.          with <style> {<linetype> {<pointtype>}}
  1273.  
  1274.  where <style> is either `lines`, `points`, `linespoints`, `impulses`,
  1275.  `dots`, `steps`, or `errorbars`. The <linetype> and <pointtype> are
  1276.  positive integer constants or expressions and specify the line type
  1277.  and point type to be used for the plot. Line type 1 is the first line
  1278.  type used by default, line type 2 is the second line type used by
  1279.  default, etc.
  1280.  
  1281.  Examples:
  1282.  
  1283.  This plots sin(x) with impulses:
  1284.          plot sin(x) with impulses
  1285.  
  1286.  This plots x*y with points, x**2 + y**2 default:
  1287.          splot x*y w points, x**2 + y**2
  1288.  
  1289.  This plots tan(x) with the default function style, "data.1" with lines:
  1290.          plot [ ] [-2:5] tan(x), "data.1" with l
  1291.  
  1292.  This plots "leastsq.dat" with impulses:
  1293.          plot 'leastsq.dat' w i
  1294.  
  1295.  This plots the data file 'population' with boxes:
  1296.          plot "population" with boxes
  1297.  
  1298.  This plots "exper.dat" with errorbars and lines connecting the points:
  1299.          plot 'exper.dat' w lines, 'exper.dat' w errorbars
  1300.  
  1301.  Here 'exper.dat' should have three or four data columns.
  1302.  
  1303.  This plots x**2 + y**2 and x**2 - y**2 with the same line type:
  1304.          splot x**2 + y**2 with line 1, x**2 - y**2 with line 1
  1305.  
  1306.  This plots sin(x) and cos(x) with linespoints, using the
  1307.  same line type but different point types:
  1308.          plot sin(x) with linesp 1 3, cos(x) with linesp 1 4
  1309.  
  1310.  This plots file "data" with points style 3:
  1311.          plot "data" with points 1 3
  1312.  Note that the line style must be specified when specifying the point
  1313.  style, even when it is irrelevant. Here the line style is 1 and the
  1314.  point style is 3, and the line style is irrelevant.
  1315.  
  1316.  See `set style` to change the default styles.
  1317. 3 title
  1318. ?plot title
  1319. ?splot title
  1320.  A title of each plot appears in the key. By default the title is
  1321.  the function or file name as it appears on the plot command line.
  1322.  The title can be changed by using the `title` option. This option
  1323.  should precede any `with` option.
  1324.  
  1325.  Syntax:
  1326.          title "<title>"
  1327.  
  1328.  where <title> is the new title of the plot and must be enclosed in
  1329.  quotes. The quotes will not be shown in the key.
  1330.  
  1331.  Examples:
  1332.  
  1333.  This plots y=x with the title 'x':
  1334.          plot x
  1335.  
  1336.  This plots the "glass.dat" file with the title 'surface of revolution':
  1337.          splot "glass.dat" title 'surface of revolution'
  1338.  
  1339.  This plots x squared with title "x^2" and "data.1" with title
  1340.  'measured data':
  1341.          plot x**2 title "x^2", "data.1" t 'measured data'
  1342.  
  1343.  The title can be omitted from the key with the "notitle" option for
  1344.  plot and splot.  This can be useful when some curves
  1345.  are plotted solely for decoration; for example, if one wanted a
  1346.  circular border for a polar plot, he could say:
  1347.  
  1348.  Example:
  1349.         set polar
  1350.         plot my_function(x), 1 notitle
  1351.  
  1352.  This would generate a key entry for "my_function" but not for "1".
  1353.  See the poldat.dem example.
  1354.  
  1355.  
  1356. 2 print
  1357. ?print
  1358.  The `print` command prints the value of <expression> to the screen.
  1359.  
  1360.  Syntax:
  1361.          print <expression>
  1362.  
  1363.  See `expressions`.
  1364. 2 pwd
  1365. ?pwd
  1366.  The `pwd` command prints the name of the working directory to the screen.
  1367.  
  1368.  Syntax:
  1369.          pwd
  1370. 2 quit
  1371. ?quit
  1372.  The `exit` and `quit` commands and END-OF-FILE character will exit
  1373.  GNUPLOT. All these commands will clear the output device (as the
  1374.  `clear` command does) before exiting.
  1375. 2 replot
  1376. ?replot
  1377.  The `replot` command without arguments repeats the last `plot` or `splot`
  1378.  command. This can be useful for viewing a plot with different `set`
  1379.  options, or when generating the same plot for several devices.
  1380.  
  1381.  Arguments specified after a `replot` command will be added onto the last
  1382.  `plot` (`splot`) command (with an implied ',' separator) before it is
  1383.  repeated. `replot` accepts the same arguments as the `plot` (`splot`)
  1384.  commands except that ranges cannot be specified.
  1385.  See `command line-editing` for ways to edit the last `plot`
  1386.  (`splot`) command.
  1387. 2 reread
  1388. ?reread
  1389.  The `reread` command causes the current gnuplot command file, as specified
  1390.  by a `load` command or on the command line, to be reset to its starting
  1391.  point before further commands are read from it.  This essentially implements
  1392.  an endless loop of the commands from the beginning of the command file to
  1393.  the `reread` command.  The `reread` command has no effect if input from
  1394.  standard input.
  1395. 2 save
  1396. ?save
  1397.  The `save` command saves user-defined functions, variables, set
  1398.  options or all three plus the last `plot` (`splot`) command to the
  1399.  specified file.
  1400.  
  1401.  Syntax:
  1402.          save  {<option>} "<filename>"
  1403.  
  1404.  where <option> is `functions`, `variables` or `set`. If no option is
  1405.  used, GNUPLOT saves functions, variables, set options and the last `plot`
  1406.  (`splot`) command.
  1407.  
  1408.  `save`d files are written in text format and may be read by the `load`
  1409.  command.
  1410.  
  1411.  The filename must be enclosed in quotes.
  1412.  
  1413.  Examples:
  1414.  
  1415.          save "work.gnu"
  1416.          save functions 'func.dat'
  1417.          save var 'var.dat'
  1418.          save set "options.dat"
  1419. 2 set-show
  1420. ?set
  1421. ?show
  1422. ?show all
  1423.  The `set` command sets LOTS of options.
  1424.  
  1425.  The `show` command shows their settings. `show all` shows all the
  1426.  settings.
  1427. 3 angles
  1428. ?set angles
  1429. ?show angles
  1430. ?angles
  1431. ?set angles degrees
  1432.  By default, GNUPLOT assumes the independent variable in polar plots
  1433.  is in units of radians. If `set angles degrees` is specified before
  1434.  `set polar` then the default range is [0:360] and the independent
  1435.  variable has units of degrees. This is particularly useful for
  1436.  plots of data files. The angle setting also hold for the 3-d
  1437.  mapping as set via the `set mapping` command.
  1438.  
  1439.  Syntax:
  1440.          set angles { degrees | radians }
  1441.          show angles
  1442. 3 arrow
  1443. ?set arrow
  1444. ?set noarrow
  1445. ?show arrow
  1446. ?arrow
  1447. ?noarrow
  1448.  Arbitrary arrows can be placed on a plot using the `set arrow`
  1449.  command.
  1450.  
  1451.  Syntax:
  1452.  
  1453.           set arrow {<tag>} {from <sx>,<sy>{,<sz>}}
  1454.                             {to <ex>,<ey>{,<ez>}} {{no}head}
  1455.           set noarrow {<tag>}
  1456.           show arrow
  1457.  
  1458.  
  1459.  Unspecified coordinates default to 0. The x, y, and z values are in
  1460.  the graph's coordinate system. The z coordinate is only used in
  1461.  `splot` commands. <tag> is an integer that identifies the arrow. If no
  1462.  tag is given, the lowest unused tag value is assigned automatically.
  1463.  The tag can be used to delete or change a specific arrow. To change
  1464.  any attribute of an existing arrow, use the `set arrow` command with
  1465.  the appropriate tag, and specify the parts of the arrow to be
  1466.  changed. Specifying nohead requests the arrow be drawn without a head
  1467.  (yielding a line segment). By default, arrows have heads.
  1468.  
  1469.  Arrows outside the plotted boundaries are permitted but may cause
  1470.  device errors.
  1471.  
  1472.  Examples:
  1473.  
  1474.  To set an arrow pointing from the origin to (1,2), use:
  1475.           set arrow to 1,2
  1476.  To set an arrow from (-10,4,2) to (-5,5,3), and tag the arrow number
  1477.  3, use:
  1478.           set arrow 3 from -10,4,2 to -5,5,3
  1479.  To change the preceding arrow begin at 1,1,1, without an arrow head,
  1480.  use:
  1481.           set arrow 3 from 1,1,1 nohead
  1482.  To delete arrow number 2 use:
  1483.           set noarrow 2
  1484.  To delete all arrows use:
  1485.           set noarrow
  1486.  To show all arrows (in tag order) use:
  1487.           show arrow
  1488. 3 autoscale
  1489. ?set autoscale
  1490. ?set noautoscale
  1491. ?show autoscale
  1492. ?autoscale
  1493. ?noautoscale
  1494.  Auto scaling may be set individually on the x, y or z axis
  1495.  or globally on all axes. The default is to autoscale all axes.
  1496.  
  1497.  When autoscaling, the plot range is automatically computed and the
  1498.  dependent axis (y for a `plot` and z for `splot`) is scaled to
  1499.  include the range of the function or data being plotted.
  1500.  
  1501.  If autoscaling of the dependent axis (y or z) is not set, the
  1502.  current y or z range is used.
  1503.  
  1504.  See `set yrange` or `set zrange`.
  1505.  
  1506.  Autoscaling the independent variables (x for `plot` and x,y for
  1507.  `splot`) is a request to set the domain to match any data file being
  1508.  plotted. If there are no data files then autoscaling an independent
  1509.  variable has no effect. In other words, in the absence of a data
  1510.  file, functions alone do not affect the x range (or the y range if
  1511.  plotting z = f(x,y)).
  1512.  
  1513.  See `set xrange`, or `set yrange`.
  1514.  
  1515.  The behavior of autoscaling remains consistent in parametric mode,
  1516.  however, there are more dependent variables and hence more control
  1517.  over x, y, and z plot scales. In parametric mode, the independent or
  1518.  dummy variable is t for `plot`s and u,v for `splot`s.  Autoscale in
  1519.  parametric mode, then, controls all ranges (t, u, v, x, y, and z) and
  1520.  allows x, y, and z to be fully autoscaled.
  1521.  
  1522.  See `set parametric`.
  1523.  
  1524.  Syntax:
  1525.          set autoscale <axes>
  1526.          set noautoscale <axes>
  1527.          show autoscale
  1528.  
  1529.  where <axes> is either `x`, `y`, `z` or `xy`. If <axes> is not given
  1530.  then all axes are assumed.
  1531.  
  1532.  Examples:
  1533.  
  1534.  This sets autoscaling of the y axis. x axis autoscaling is not
  1535.  affected.
  1536.          set autoscale y
  1537.  
  1538.  This sets autoscaling of the x and y axes.
  1539.          set autoscale xy
  1540.  
  1541.  This sets autoscaling of the x, y and z axes.
  1542.          set autoscale
  1543.  
  1544.  This disables autoscaling of the x, y and z axes.
  1545.          set noautoscale
  1546.  
  1547.  This disables autoscaling of the z axis only.
  1548.          set noautoscale z
  1549. 4 parametric mode
  1550. ?autoscale parametric
  1551. ?set autoscale t
  1552.  When in parametric mode (`set parametric`) the xrange is as
  1553.  fully scalable as the yrange. In other words, in parametric
  1554.  mode the x axis can be automatically scaled to fit the range
  1555.  of the parametric function that is being plotted. Of course,
  1556.  the y axis can also be automatically scaled just as in the
  1557.  non-parametric case. If autoscaling on the x axis is not set,
  1558.  the current x range is used.
  1559.  
  1560.  When there is a mix of data files and functions, the xrange of
  1561.  the functions is selected as that of the data files if autoscale
  1562.  is true for x. While this keeps the behavior compatible with
  1563.  non-parametric plotting, it may not be retained in the future.
  1564.  The problem is that, in parametric mode, the x and y ranges are
  1565.  not as distinguishable as in the non-parametric mode and this
  1566.  behavior may not be the most useful.
  1567.  
  1568.  For completeness a last command `set autoscale t` is accepted.
  1569.  However, the effect of this "scaling" is very minor. When
  1570.  GNUPLOT determines that the t range would be empty it makes a
  1571.  small adjustment if autoscaling is true. Otherwise, GNUPLOT
  1572.  gives an error. Such behavior may, in fact, not be very useful
  1573.  and the command `set autoscale t` is certainly questionable.
  1574.  
  1575.  `splot` extends the above idea similarly. If autoscaling is set then
  1576.  x, y, and z ranges are computed and each axis scaled to fit the
  1577.  resulting data.
  1578. 3 border
  1579. ?set border
  1580. ?set noborder
  1581. ?show border
  1582. ?border
  1583. ?noborder
  1584.  The `set border` and `set noborder` commands controls the display of
  1585.  the plot borders for the `plot` and `splot` commands.
  1586.  
  1587.  Syntax:
  1588.          set border
  1589.          set noborder
  1590.          show border
  1591. 3 boxwidth
  1592. ?set boxwidth
  1593. ?show boxwidth
  1594. ?boxwidth
  1595.  The `set boxwidth` command is used to set the default width of
  1596.  boxes in the `boxes` and `boxerrorbars` styles.
  1597.  
  1598.  If a data file is plotted without the width being specified in the
  1599.  fifth column, or a function is plotted, the width of each box is
  1600.  set by the `set boxwidth` command.  If a width is given after the
  1601.  `set boxwidth` command then this is used as the width.  Otherwise
  1602.  the width of each box will be calculated automatically so that
  1603.  it touches the adjacent boxes.
  1604.  
  1605.  Syntax:
  1606.           set boxwidth {<width>}
  1607.           show boxwidth
  1608.  
  1609.  To set the box width to automatic use the command
  1610.           set boxwidth
  1611. 3 clabel
  1612. ?set clabel
  1613. ?set noclabel
  1614. ?show clabel
  1615. ?clabel
  1616. ?noclabel
  1617.  GNUPLOT will vary the linetype used for each contour level
  1618.  when clabel is set. When this option on (the default), a
  1619.  legend labels each linestyle with the z level it represents.
  1620.  
  1621.  Syntax:
  1622.          set clabel
  1623.          set noclabel
  1624.          show clabel
  1625. 3 clip
  1626. ?set clip
  1627. ?set noclip
  1628. ?show clip
  1629. ?clip
  1630. ?noclip
  1631.  GNUPLOT can clip data points and lines that are near the boundaries
  1632.  of a plot.
  1633.  
  1634.  Syntax:
  1635.          set clip <clip-type>
  1636.          set noclip <clip-type>
  1637.          show clip
  1638.  
  1639.  Three clip types are supported by GNUPLOT: `points`, `one`, and `two`.
  1640.  One, two, or all three clip types may be active for a single plot.
  1641.  
  1642.  The `points` clip type forces GNUPLOT to clip (actually, not plot at
  1643.  all) data points that fall within but too close to the boundaries
  1644.  (this is so the large symbols used for points will not extend outside
  1645.  the boundary lines). Without clipping points near the boundaries may
  1646.  look bad; try adjusting the x and y ranges.
  1647.  
  1648.  Setting the `one` clip type causes GNUPLOT to plot the line segments
  1649.  which have only one of the two endpoints within the plotting region.
  1650.  Only the in-range portion of the line is drawn.  The alternative is to
  1651.  not draw any portion of the line segment.
  1652.  
  1653.  Some lines may have both endpoints out of range, but pass through the
  1654.  plotting area. Setting the `two` clip-type allows the visible portion
  1655.  of these lines to be drawn.
  1656.  
  1657.  In no case is a line drawn outside the plotting area.
  1658.  
  1659.  The defaults are `noclip points`, `clip one`, and `noclip two`.
  1660.  
  1661.  To check the state of all forms of clipping, use
  1662.          show clip
  1663.  
  1664.  For backward compatibility with older versions, the following forms
  1665.  are also permitted.
  1666.         set clip
  1667.         set noclip
  1668.  `set clip` is synonymous with `set clip points`. `set noclip` turns
  1669.  off all three types of clipping.
  1670. 3 cntrparam
  1671. ?set cntrparam
  1672. ?show cntrparam
  1673. ?cntrparam
  1674.  Sets the different parameters for the contouring plot (see also `contour`).
  1675.  
  1676.  Syntax:
  1677.   set cntrparam { { linear | cubicspline | bspline } |
  1678.      points <n> |
  1679.      order <n>  |
  1680.      levels { [ auto ] <n> |
  1681.      discrete <z1>,<z2>, ... |
  1682.      incremental {<start>, <incr>{, <end>} } }
  1683.  
  1684.  Examples:
  1685.      set cntrparam bspline
  1686.      set cntrparam points 7
  1687.      set cntrparam order 10
  1688.      set cntrparam levels auto 5                   # 5 automatic levels
  1689.      set cntrparam levels discrete .1,1/exp(1),.9  # 3 discrete at .1,.37,.9
  1690.      set cntrparam levels incremental  0,.1,.4
  1691.      # 5 incremental levels at 0, .1, .2, .3 and .4
  1692.      set cntrparam levels 10
  1693.      # sets n = 10 retaining current setting of auto, discr. and
  1694.      # increment's start and increment value, while changing end
  1695.      set cntrparam levels incremental 100,50
  1696.      # set start = 100 and increment = 50, retaining n levels
  1697.  
  1698.  This command controls the way contours are plotted. <n> should be an
  1699.  integral constant expression and <z1>, <z2> any constant expressions.
  1700.  The parameters are:
  1701.  
  1702.  `linear`, `cubicspline`, `bspline` - Controls type of approximation or
  1703.  interpolation. If `linear`, then the contours are drawn piecewise
  1704.  linear, as extracted from the surface directly. If `cubicspline`, then
  1705.  piecewise linear contours are interpolated to form a somewhat smoother
  1706.  contours, but which may undulate. The third option is the uniform
  1707.  `bspline`, which only approximates the piecewise linear data but is
  1708.  guaranteed to be smoother.
  1709.  
  1710.  `points` - Eventually all drawings are done with piecewise linear
  1711.  strokes.  This number controls the number of points used to
  1712.  approximate a curve.  Relevant for `cubicspline` and `bspline` modes
  1713.  only.
  1714.  
  1715.  `order`  - Order of the bspline approximation to be used. The bigger this
  1716.  order is, the smoother the resulting contour.  (Of course, higher order
  1717.  bspline curves will move further away from the original piecewise linear
  1718.  data.)  This option is relevant for `bspline` mode only. Allowed values are
  1719.  integers in the range from 2 (linear) to 10.
  1720.  
  1721.  `levels` - Number of contour levels, 'n'.  Selection of the levels is
  1722.  controlled by 'auto' (default), 'discrete', and 'incremental'. For 'auto',
  1723.  if the surface is bounded by zmin and zmax then contours will be
  1724.  generated from zmin+dz to zmax-dz in steps of size dz, where
  1725.  dz = (zmax - zmin) / (levels + 1).  For 'discrete', contours will be
  1726.  generated at z = z1, z2 ... as specified.  The number of discrete levels
  1727.  is limited to MAX_DISCRETE_LEVELS, defined in plot.h to be 30.  If
  1728.  'incremental', contours are generated at <n> values of z beginning at
  1729.  <start> and increasing by <increment>.
  1730. 3 contour
  1731. ?set contour
  1732. ?show contour
  1733. ?contour
  1734.  Enable contour drawing for surfaces. This option is available for `splot`
  1735.  only.
  1736.  
  1737.  Syntax:
  1738.          set contour { base | surface | both }
  1739.          set nocontour
  1740.  
  1741.  If no option is provided to `set contour`, the default is `base`.
  1742.  The three options specify where to draw the contours: `base` draws
  1743.  the contours on the grid base where the x/ytics are placed, `surface`
  1744.  draws the contours on the surfaces themselves, and `both` draws the
  1745.  contours on both the base and the surface.
  1746.  
  1747.  See also `set cntrparam` for the parameters that affect the drawing of
  1748.  contours.
  1749. 3 data style
  1750. ?set data style
  1751. ?show data style
  1752. ?data style
  1753.  The `set data style` command changes the default plotting style
  1754.  for data plots.
  1755.  
  1756.  Syntax:
  1757.          set data style
  1758.          show data style
  1759.          set data style <style-choice>
  1760.  
  1761.  In the first case, `set data style` returns the possible style
  1762.  choices:  `lines`, `points`, `linespoints`, `dots`, `steps`,
  1763.  `impulses`, `errorbars`, `boxes` or `boxerrorbars`.  `show data style`
  1764.  shows the current default plotting style for data.  `set data style dots`
  1765.  would actually  change the default plotting style.  See also `plot`.
  1766. 3 dgrid3d
  1767. ?set dgrid3d
  1768. ?show dgrid3d
  1769. ?dgrid3d
  1770.  Enables and sets the different parameters for non grid to grid data mapping.
  1771.  
  1772.  Syntax:
  1773.          set dgrid3d {,{<row_size>}{,{<col_size>}{,<norm>}}}
  1774.          set nodgrid3d
  1775.  
  1776.  Examples:
  1777.         set dgrid3d 10,10,2
  1778.         set dgrid3d ,,4
  1779.  
  1780.  The first selects a grid of size 10 by 10 to be constructed and the use
  1781.  of L2 norm in the distance computation. The second only modifies the norm
  1782.  to be used to L4.
  1783.  
  1784.  By default this option is disabled. When enabled, 3d data read from a file
  1785.  is always treaded as a scattered data set. A grid with dimensions derived
  1786.  from a bounding box of the scattered data and size as specified by the
  1787.  row/col_size above is created for plotting and contouring. The grid is
  1788.  equally spaced in x and y while the z value is computed as a weighted
  1789.  average of the scattered points distance to the grid points. The closer
  1790.  the scatter points to a grid point are the more effect they have on that
  1791.  grid point. The third, norm, parameter controls the "meaning" of the
  1792.  distance, by specifying the distance norm. This distance computation
  1793.  is optimized for powers of 2 norms, specifically 1, 2, 4, 8, and 16, but
  1794.  any nonnegative integer can be used.
  1795.  
  1796.  This dgrid3d option is a simple low pass filter that converts scattered data
  1797.  to a grid data set. More sophisticated approaches to this problem exists and
  1798.  should be used as a preprocess to and outside gnuplot if this simple solution
  1799.  is found inadequate.
  1800.  
  1801. 3 dummy
  1802. ?set dummy
  1803. ?show dummy
  1804. ?dummy
  1805.  By default, GNUPLOT assumes that the independent variable for the
  1806.  `plot` command is x, and the independent variables for the `splot`
  1807.  command are x and y. They are called the dummy variables because it
  1808.  is just a notation to indicate the independent variables.
  1809.  The `set dummy` command changes these default dummy variable names.
  1810.  For example, it may be more convenient to call the dummy variable t
  1811.  when plotting time functions:
  1812.  
  1813.          set dummy t
  1814.          plot sin(t), cos(t)
  1815.  
  1816.  Syntax:
  1817.          set dummy <dummy-var>{,<dummy-var>}
  1818.          show dummy
  1819.  
  1820.  Examples:
  1821.          set dummy u,v
  1822.          set dummy ,s
  1823.  
  1824.  to set both dummy variables to u and v or set only the second
  1825.  variable to s.
  1826.  
  1827.  The `set parametric` command also changes the dummy variables (to t
  1828.  for `plot` and u,v for `splot`s).
  1829.  
  1830. 3 format
  1831. ?set format
  1832. ?show format
  1833. ?format
  1834.  The format of the tic-mark labels can be set with the `set format`
  1835.  command. The default format for both axes is "%g", but other formats
  1836.  such as "%.2f" or "%3.0fm" are often desirable. Anything accepted by
  1837.  printf when given a double precision number, and then accepted by the
  1838.  terminal, will work. In particular, the formats f, e, and g will work,
  1839.  and the d, o, x, c, s, and u formats will not work.
  1840.  
  1841.  Syntax:
  1842.          set format {<axes>} {"<format-string>"}
  1843.          show format
  1844.  
  1845.  where <axes> is either `x`, `y`, `z`, `xy`, or nothing (which is the
  1846.  same as `xy`). The length of the string representing a ticmark (after
  1847.  formatting with printf) is restricted to 100 characters.  If the
  1848.  format string is omitted, the format will be returned to the default
  1849.  "%g". For LaTeX users, the format "$%g$" is often desirable.  If the
  1850.  empty string "" is used, no label will be plotted with each tic,
  1851.  though the tic mark will still be plotted. To eliminate all tic marks,
  1852.  use `set noxtics` or `set noytics`.
  1853.  
  1854.  See also `set xtics` and `set ytics` for more control over tic labels.
  1855. 3 function style
  1856. ?set function style
  1857. ?show function style
  1858. ?function style
  1859.  The `set function style` command changes the default plotting style
  1860.  for functions.
  1861.  
  1862.  Syntax:
  1863.          set function style
  1864.          show function style
  1865.          set function style <style-choice>
  1866.  
  1867.  In the first case, `set function style` returns the possible style
  1868.  choices:  `lines`, `points`, `linespoints`, `dots`, `steps`,
  1869.  `impulses`, `errorbars`, `boxes`, or `boxerrorbars`.
  1870.  `show function style` shows the current default plotting style for
  1871.  functions.  `set function style linespoints` would actually change
  1872.  the default plotting style.   See also `plot`.
  1873. 3 functions
  1874. ?show functions
  1875.  The `show functions` command lists all user-defined functions and
  1876.  their definitions.
  1877.  
  1878.  Syntax:
  1879.          show functions
  1880. 3 grid
  1881. ?set grid
  1882. ?show grid
  1883. ?grid
  1884.  The optional `set grid` draws a grid at the tic marks with the axis
  1885.  linetype.
  1886.  
  1887.  Syntax:
  1888.          set grid
  1889.          set nogrid
  1890.          show grid
  1891. 3 hidden3d
  1892. ?set hidden3d
  1893. ?show hidden3d
  1894.  The `set hidden3d` command enables hidden line removal for explicit
  1895.  surface plotting (see `splot`).
  1896.  Hidden line removal may be used for both explicit functions and for
  1897.  explicit data.  It now works for parametric surfaces as well.
  1898.  
  1899.  When this flag is set both the surface hidden portion and possibly
  1900.  its hidden contours (see `set contour`) as well as the hidden grid will be
  1901.  removed. Labels and arrows are always visible and are unaffected by this
  1902.  command.
  1903.  
  1904.  Each surface has its hidden parts removed with respect to itself and to
  1905.  other surfaces, if more than one surface is plotted. This mode is
  1906.  meaningful when surfaces are plotted using line style drawing only.
  1907.  
  1908.  Syntax:
  1909.          set hidden3d
  1910.          set nohidden3d
  1911.          show hidden3d
  1912. 3 isosamples
  1913. ?set isosamples
  1914. ?show isosamples
  1915. ?isosamples
  1916.  An isoline is a curve parametrized by one of the surface parameters
  1917.  while the other surface parameter is fixed. Isolines are a simple
  1918.  means to display a surface. By fixing the u parameter of surface
  1919.  s(u,v), the iso-u lines of the form c(v) = s(u0,v) are produced, and
  1920.  by fixing the v parameter, the iso-v lines of the form c(u) = s(u,v0)
  1921.  are produced.
  1922.  
  1923.  The isoline density of surfaces may be changed by the `set isosamples`
  1924.  command. By default, sampling is set to 10 isolines per u or v axis.
  1925.  A higher sampling rate will produce more accurate plots, but will take
  1926.  longer. This parameter has no effect on data file plotting.
  1927.  
  1928.  Syntax:
  1929.          set isosamples <iso_1> {,<iso_2>}
  1930.          show isosamples
  1931.  
  1932.  Each surface plot will have <iso_1> iso-u lines and <iso_2> iso-v lines.
  1933.  If you only specify <iso_1>, <iso_2> will be set to the same value as
  1934.  <iso_1>.
  1935.  
  1936.  When a surface plot is being done without the removal of hidden
  1937.  lines, `set samples` also has an effect on the number of points being
  1938.  evaluated. See `set samples`.
  1939. 3 key
  1940. ?set key
  1941. ?show key
  1942. ?key
  1943.  The `set key` enables a key describing curves on a plot.  By default
  1944.  the key is placed in the upper right corner of the plot.
  1945.  
  1946.  Syntax:
  1947.          set key
  1948.          set key <x>,<y>{,<z>}
  1949.          set nokey
  1950.          show key
  1951.  
  1952.  The coordinates <x>, <y> (and <z> for `splot`s) specify the location
  1953.  of the key on the plot. The key is drawn as a sequence of lines, with
  1954.  one plot described on each line. On the right hand side of each line
  1955.  is a representation that attempts to mimic the way the curve is
  1956.  plotted.  On the left side of each line is the text description,
  1957.  obtained from the `plot` command. See `plot title` to change this
  1958.  description. The lines are vertically arranged so an imaginary
  1959.  straight line divides the left- and right-hand sides of the key. It is
  1960.  the coordinates of this line that are specified with the `set key`
  1961.  command. In a `plot`, only the x and y coordinates are used to specify
  1962.  the line position.  For a `splot`, x, y and z are all being used as a
  1963.  3-d location mapped using the same mapping as the plot itself to form
  1964.  the required 2-d screen position of the imaginary line.
  1965.  
  1966.  Some or all of the key may be outside of the plot boundary, although
  1967.  this may interfere with other labels and may cause an error on some
  1968.  devices.
  1969.  
  1970.  Examples:
  1971.  
  1972.  This places the key at the default location:
  1973.          set key
  1974.  This disables the key:
  1975.          set nokey
  1976.  This places a key at coordinates 2,3.5,2
  1977.          set key 2,3.5,2
  1978. 3 label
  1979. ?set label
  1980. ?set nolabel
  1981. ?show label
  1982. ?label
  1983. ?nolabel
  1984.  Arbitrary labels can be placed on the plot using the `set label`
  1985.  command.  If the z coordinate is given on a `plot` it is ignored; if
  1986.  it is missing on a `splot` it is assumed to be 0.
  1987.  
  1988.  Syntax:
  1989.  
  1990.           set label {<tag>} {"<label_text>"} {at <x>,<y>{,<z>}}
  1991.                             {<justification>}
  1992.           set nolabel {<tag>}
  1993.           show label
  1994.  
  1995.  
  1996.  The text defaults to "", and the position to 0,0,0.  The <x>, <y>, and
  1997.  <z> values are in the graph's coordinate system.  The tag is an
  1998.  integer that is used to identify the label. If no <tag> is given, the
  1999.  lowest unused tag value is assigned automatically. The tag can be used
  2000.  to delete or change a specific label. To change any attribute of an
  2001.  existing label, use the `set label` command with the appropriate tag,
  2002.  and specify the parts of the label to be changed.
  2003.  
  2004.  By default, the text is placed flush left against the point x,y,z.
  2005.  To adjust the way the label is positioned with respect to the point
  2006.  x,y,z, add the parameter <justification>, which may be `left`, `right`
  2007.  or `center`, indicating that the point is to be at the left, right or
  2008.  center of the text. Labels outside the plotted boundaries are
  2009.  permitted but may interfere with axes labels or other text.
  2010.  
  2011.  Examples:
  2012.  
  2013.  To set a label at (1,2) to "y=x" use:
  2014.           set label "y=x" at 1,2
  2015.  To set a label "y=x^2" with the right of the text at (2,3,4), and tag
  2016.  the label number 3, use:
  2017.           set label 3 "y=x^2" at 2,3,4 right
  2018.  To change the preceding label to center justification, use:
  2019.           set label 3 center
  2020.  To delete label number 2 use:
  2021.           set nolabel 2
  2022.  To delete all labels use:
  2023.           set nolabel
  2024.  To show all labels (in tag order) use:
  2025.           show label
  2026.  
  2027.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  2028.  a newline.)
  2029. 3 logscale
  2030. ?set logscale
  2031. ?set nologscale
  2032. ?show logscale
  2033. ?logscale
  2034. ?nologscale
  2035.  Log scaling may be set on the x, y, and z axes.
  2036.  
  2037.  Syntax:
  2038.          set logscale <axes> <base>
  2039.          set nologscale <axes>
  2040.          show logscale
  2041.  
  2042.  where <axes> may be any combinations of `x`, `y`, and `z`, in any
  2043.  order, and where <base> is the base of the log scaling.  If <base>
  2044.  is not given, then 10 is assumed.  If <axes> is not given then all
  2045.  three axes are assumed.  The command `set logscale` turns on log
  2046.  scaling on the specified axes, while `set nologscale` turns off
  2047.  log scaling.
  2048.  
  2049.  Examples:
  2050.  
  2051.  To enable log scaling in both x and z axes:
  2052.         set logscale xz
  2053.  To enable scaling log base 2 of the y axis:
  2054.         set logscale y 2
  2055.  To disable z axis log scaling:
  2056.         set nologscale z
  2057. 3 mapping
  2058. ?set mapping
  2059. ?show mapping
  2060. ?mapping
  2061.  
  2062.  Syntax:
  2063.          set mapping { cartesian | spherical | cylindrical }
  2064.  
  2065.  Data for `splot`s are usually in regular Euclidean space and are
  2066.  provided in Cartesian coordinates. Such 3-d data require three
  2067.  coordinates (x, y and z) or one coordinate (only z) in each line in
  2068.  the data file.  In order to be able to use spherical or cylindrical
  2069.  coordinate systems, use the `set mapping` command. In both cases two
  2070.  coordinates are expected in each line of the data. For a spherical
  2071.  coordinate system, these are theta and phi (in units as specified by
  2072.  `set angles`) and the mapping is:
  2073.  
  2074.          x = cos( theta ) * cos( phi )
  2075.          y = sin( theta ) * cos( phi )
  2076.          z = sin( phi )
  2077.  
  2078.  For a cylindrical coordinate system, the mapping uses two variables,
  2079.  theta (in units as specified by `set angles`) and z:
  2080.  
  2081.          x = cos( theta )
  2082.          y = sin( theta )
  2083.          z = z
  2084.  
  2085.  Again, note that mapping will affect data file `splot`s only.
  2086. 3 offsets
  2087. ?set offsets
  2088. ?show offsets
  2089. ?offsets
  2090.  The amount of the graph that the plot takes up may be controlled to
  2091.  some extent with the `set offsets` command. This command takes four
  2092.  offset arguments: <left>, <right>, <top> and <bottom>. By default,
  2093.  each offset is 0. Each offset may be a constant or an expression. Left
  2094.  and right offsets are given in units of the x axis, while top and
  2095.  bottom offsets are given in units of the y axis. The plot of sin(x),
  2096.  displayed with offsets of 0, 0, 2, 2 will take up 1/3 of the
  2097.  displayed y axis. Offsets are particularly useful with polar
  2098.  coordinates as a means of compensating for aspect ratio distortion.
  2099.  Offsets are ignored in `splot`s.
  2100.  
  2101.  Syntax:
  2102.          set offsets <left>, <right>, <top>, <bottom>
  2103.          show offsets
  2104. 3 output
  2105. ?set output
  2106. ?show output
  2107. ?output
  2108.  By default, plots are displayed to the standard output. The
  2109.  `set output` command redirects the display to the specified file
  2110.  or device.
  2111.  
  2112.  Syntax:
  2113.          set output {"<filename>"}
  2114.          show output
  2115.  
  2116.  The filename must be enclosed in quotes. If the filename is
  2117.  omitted, output will be sent to the standard output.
  2118.  
  2119.  On machines with popen functions (UNIX), output can be piped
  2120.  through a shell command if the first letter of the filename
  2121.  is '|'.  For instance,
  2122.  
  2123.  Syntax:
  2124.          set output "|lpr -Plaser filename"
  2125.          set output "|lp -dlaser filename"
  2126.  
  2127.  (On MSDOS machines, set output "prn" will direct the output
  2128.  to the default printer.)
  2129.  
  2130. 3 parametric
  2131. ?set parametric
  2132. ?set noparametric
  2133. ?show parametric
  2134. ?parametric
  2135. ?noparametric
  2136.  The `set parametric` command changes the meaning of `plot` (`splot`)
  2137.  from normal functions to parametric functions. The command
  2138.  `set noparametric` changes the plotting style back to normal,
  2139.  single-valued expression plotting.
  2140.  
  2141.  In 2-d plotting, a parametric function is determined by a pair
  2142.  of parametric functions operating on a parameter. An example
  2143.  of a 2-d parametric function would be plot sin(t),cos(t) (which
  2144.  defines a circle).
  2145.  
  2146.  For 3-d plotting, the surface is described as x=f(u,v), y=g(u,v),
  2147.  z=h(u,v). Therefore a triplet of functions are required. An example of
  2148.  3-d parametric function would be cos(u)*cos(v),cos(u)*sin(v),sin(u)
  2149.  (which defines a sphere). It takes three parametric function
  2150.  specifications in terms of the parametric dummy arguments to describe
  2151.  a single graph.
  2152.  
  2153.  The total set of possible plots is a superset of the simple f(x)
  2154.  style plots, since the two (three) functions can describe the
  2155.  x and y (and z) values to be computed separately. In fact,
  2156.  plots of the type t,f(t) (u,v,f(u,v)) are equivalent to those
  2157.  produced with f(x) when the x values are computed using the
  2158.  identity function as the first function.
  2159.  
  2160.  Note that the order the parametric functions are specified is
  2161.  xfunction, yfunction (and zfunction) and that each operates over the
  2162.  common parametric domain.
  2163.  
  2164.  Also, the `set parametric` function implies a new range of values.
  2165.  Whereas the normal f(x) and f(x,y) style plotting assume an xrange
  2166.  and yrange (and zrange), the parametric mode additionally specifies a
  2167.  trange, urange, and vrange. These ranges may be set
  2168.  directly with `set trange`, `set urange` and `set vrange`, or by
  2169.  specifying the range on the `plot` or `splot` commands. Currently
  2170.  the default range for these parametric variables is [-5:5].
  2171.  Setting the ranges to something more meaningful is expected.
  2172. 3 polar
  2173. ?set polar
  2174. ?set nopolar
  2175. ?show polar
  2176. ?polar
  2177. ?nopolar
  2178.  The `set polar` command changes the meaning of the plot from
  2179.  rectangular coordinates to polar coordinates. In polar coordinates,
  2180.  the dummy variable (x) is an angle. The range of this angle is changed
  2181.  from whatever it was to [0:2*pi], or, if degree unit has been selected,
  2182.  to [0:360] (see `set angles`).
  2183.  
  2184.  The command `set nopolar` changes the meaning of the plot back to the
  2185.  default rectangular coordinate system. The range of x is changed from
  2186.  whatever it was to [-10:10].
  2187.  
  2188.  The `set polar` command is not supported for `splot`s.  See the
  2189.  `set mapping` command for similar functionality for `splot`s.
  2190.  
  2191.  While in polar coordinates the meaning of an expression in x is really
  2192.  r = f(x), where x is an angle of rotation. The xrange controls the
  2193.  domain (the angle) of the function, and the yrange controls the range
  2194.  (the radius). The plot is plotted in a rectangular box, and the x and
  2195.  y axes are both in units of the radius. Thus, the yrange controls both
  2196.  dimensions of the plot output. The tics and units are written along
  2197.  the axes rather than at the left and bottom. These unit are offset by
  2198.  <rmin> specified by the `rrange` (See `set rrange`). It is not
  2199.  possible to specify different output dimensions in the x or y
  2200.  directions. The yrange can be used to shift the plot diagonally to
  2201.  display only the first or third quadrants.
  2202.  
  2203.  Syntax:
  2204.          set polar
  2205.          set nopolar
  2206.          show polar
  2207.  Example:
  2208.          set polar
  2209.          plot x*sin(x)
  2210.          plot [-2*pi:2*pi] [-3:3] x*sin(x)
  2211.  The first plot uses the default polar angular domain of 0 to 2*pi.
  2212.  The radius (and the size of the plot) is scaled automatically. The
  2213.  second plot expands the domain, and restricts the range of the radius
  2214.  (and the size of the plot) to [-3:3].
  2215. 3 rrange
  2216. ?set rrange
  2217. ?show rrange
  2218. ?rrange
  2219.  The `set rrange` command sets the radial range used to compute x and y
  2220.  values when in polar mode. If not in polar mode (see `set polar`) then
  2221.  this range is not used. Use of this command offsets the polar
  2222.  singularity to the <rmin> value and shifts the units on the axes tic
  2223.  marks. For instance, `set rrange [-40:40]` would set the origin to -40
  2224.  and would plot values of radial values between -40 to 40. Thus, if
  2225.  360 degrees of data were plotted, then the plot would extend 80 units
  2226.  in radially from the origin.  To view the entire plot,  a
  2227.  `set yrange [-80:80]` command would create a square viewport with
  2228.  a circular plot tangent at the axes.  Because `xrange` is used
  2229.  specify the angular extent, only a square viewport can be specified
  2230.  by `yrange`.  For instance, `set yrange [0:80]` would display the
  2231.  first quadrant and `set yrange [-80:0]` would display the third
  2232.  quadrant.  Any square viewport of any size can be specified but it
  2233.  is constrained to be centered on a 45 degree line.
  2234.  
  2235.  This range may also be specified on the `plot` command line when in
  2236.  polar mode.
  2237.  
  2238.  Syntax:
  2239.          set rrange [{<rmin> : <rmax>}]
  2240.  
  2241.  where <rmin> and <rmax> terms are constants or expressions.
  2242.  
  2243.  Both the <rmin> and <rmax> terms are optional. Anything omitted will
  2244.  not be changed, so
  2245.          set rrange [:10]
  2246.  changes rmax to 10 without affecting rmin.
  2247. 3 samples
  2248. ?set samples
  2249. ?show samples
  2250. ?samples
  2251.  The sampling rate of functions may be changed by the `set samples`
  2252.  command. By default, sampling is set to 100 points. A higher sampling
  2253.  rate will produce more accurate plots, but will take longer. This
  2254.  parameter no longer has any effect on data-file plotting.
  2255.  
  2256.  Syntax:
  2257.          set samples <samples_1> {,<samples_2>}
  2258.          show samples
  2259.  
  2260.  When a 2-d plot is being done, only the value of <samples_1> is
  2261.  relevant.
  2262.  
  2263.  When a surface plot is being done without the removal of hidden
  2264.  lines, the value of samples specifies the number of samples that are
  2265.  evaluated per iso line. Each iso-v line will have <sample_1> samples
  2266.  and each iso-u line will have <sample_2> samples. If you only specify
  2267.  <samples_1>, <samples_2> will be set to the same value as <samples_1>.
  2268.  See also `set isosamples`.
  2269. 3 size
  2270. ?set size
  2271. ?show size
  2272. ?size
  2273.  The `set size` command scales the displayed size of the plot.  On some
  2274.  terminals, changing the size of the plot will result in text being
  2275.  misplaced. Increasing the size of the plot may produce strange
  2276.  results. Decreasing is safer.
  2277.  
  2278.  Syntax:
  2279.  
  2280.          set size {<xscale>,<yscale>}
  2281.          show size
  2282.  
  2283.  The <xscale> and <yscale> values are the scaling factors for the size.
  2284.  The defaults (1,1) are selected if the scaling factors are omitted.
  2285.  
  2286.  Examples:
  2287.  
  2288.  To set the size to normal size use:
  2289.          set size
  2290.  To make the plot half size use:
  2291.          set size 0.5,0.5
  2292.  To make a landscape plot have a 1:1 aspect ratio in polar mode use:
  2293.          set size 0.721,1.0
  2294.  To show the size use:
  2295.          show size
  2296.  
  2297.  For the LaTeX and Fig terminals the default size (scale factor 1,1)
  2298.  is 5 inches wide by 3 inches high. The big Fig terminal (`bfig`) is 7
  2299.  inches wide by 5 inches high. The postscript default is landscape mode
  2300.  10 inches wide and 7 inches high.
  2301.  Note that the size of the plot includes the space used by the labels;
  2302.  the plotting area itself is smaller.
  2303. 3 style
  2304. ?set style
  2305. ?show style
  2306. ?style
  2307. ?lines
  2308. ?points
  2309. ?linespoints
  2310. ?impulses
  2311. ?dots
  2312. ?steps
  2313. ?errorbars
  2314. ?boxes
  2315. ?boxerrorbars
  2316. ?bargraph
  2317.  Plots may be displayed in one of eight styles: `lines`, `points`,
  2318.  `linespoints`, `impulses`, `dots`, `steps`, `errorbars`, `boxes`, or
  2319.  `boxerrorbars`.  The `lines` style connects adjacent points with lines.
  2320.  The `points` style displays a small symbol at each point.
  2321.  The `linespoints` style does both `lines` and `points`.
  2322.  The `impulses` style displays a vertical line from the x axis
  2323.  (or from the grid base for `splot`) to each point. The `dots` style
  2324.  plots a tiny dot at each point; this is useful for
  2325.  scatter plots with many points.
  2326.  
  2327.  The `errorbars` style is only relevant to 2-d data file plotting. It
  2328.  is treated like `points` for `splot`s and function `plot`s. For data
  2329.  `plot`s, `errorbars` is like `points`, except that a vertical error
  2330.  bar is also drawn: for each point (x,y), a line is drawn from
  2331.  (x,ylow) to (x,yhigh). A tic mark is placed at the ends of the error
  2332.  bar. The ylow and yhigh values are read from the data file's columns,
  2333.  as specified with the `using` option to plot. See `plot errorbars` for
  2334.  more information.
  2335.  
  2336.  The `boxes` style is only relevant to 2-d plotting.  It draws
  2337.  a box centred about the given x coordinate from the yaxis to the given
  2338.  y coordinate.   The width of the box is obtained in one of three
  2339.  ways.  If a data file has a fifth column, this will be used to set
  2340.  the width of the box.  Otherwise, if a width has been set using the
  2341.  `set boxwidth` command, this will be used.  Otherwise the width of each
  2342.  box will be calculated automatically so that it touches the adjacent
  2343.  boxes.  Another style called `boxerrorbars` is also available and is
  2344.  only  relevant to 2-d data file plotting.  This style is a combination
  2345.  of the `boxes` and `errorbars` styles.
  2346.  
  2347.  The `steps` style is only relevant to 2-d plotting.  This style
  2348.  connects consecutive points with two line segments: the first
  2349.  from (x1,y1) to (x2,y1) and the second from (x2,y1) to (x2,y2).
  2350.  
  2351.  Default styles are chosen with the `set function style` and
  2352.  `set data style` commands. See `plot style` for information about
  2353.  how to override the default plotting style for individual functions.
  2354.  
  2355.  Syntax:
  2356.          set function style <style>
  2357.          set data style <style>
  2358.          show function style
  2359.          show data style
  2360.  
  2361.  where <style> is `lines`, `points`, `linespoints`, `impulses`,
  2362.  `dots`, `steps`, `errorbars`, `boxes`, or `boxerrorbars`.
  2363. 3 surface
  2364. ?set surface
  2365. ?set nosurface
  2366. ?show surface
  2367. ?surface
  2368.  `set surface` controls the display of surfaces. It is useful if
  2369.  contours are to be displayed by themselves. Whenever `set nosurface`
  2370.  is issued, no surface isolines/mesh will be drawn. See also
  2371.  `set contour`.
  2372.  
  2373.  Syntax:
  2374.          set surface
  2375.          set nosurface
  2376.          show surface
  2377. 3 terminal
  2378. ?set terminal
  2379. ?show terminal
  2380. ?terminal
  2381.  GNUPLOT supports many different graphics devices. Use the
  2382.  `set terminal` command to select the type of device for which
  2383.  GNUPLOT will produce output.
  2384.  
  2385.  Syntax:
  2386.          set terminal {<terminal-type>}
  2387.          show terminal
  2388.  
  2389.  If <terminal-type> is omitted, GNUPLOT will list the available
  2390.  terminal types. <terminal-type> may be abbreviated.
  2391.  
  2392.  Use `set output` to redirect this output to a file or device.
  2393.  
  2394.  Several terminals have additional options. For example, see `dumb`,
  2395.  `iris4d`, `hpljii` or `postscript`.
  2396. 4 aifm
  2397. ?set terminal aifm
  2398. ?aifm
  2399.  Several options may be set in the Adobe Illustrator 3.0 driver.
  2400.  
  2401.  Syntax:
  2402.          set terminal aifm {<color>}
  2403.                                  {"<fontname>"} {<fontsize>}
  2404.  
  2405.  Selecting default sets all options to their default values.
  2406.  <color> is either `color` or `monochrome`.
  2407.  "<fontname>" is the name of a valid PostScript font.
  2408.  <fontsize> is the size of the font in PostScript points, before
  2409.  scaling by the `set size` command.
  2410.  Defaults are `monochrome`, "Helvetica", and 14pt.
  2411.  
  2412.  Also, since AI does not really support multiple pages, multiple
  2413.  graphs will be output directly on one another.  However, each graph
  2414.  will be grouped individually, making it easy to separate them inside
  2415.  AI (just pick them up and move them).
  2416.  
  2417.  Examples:
  2418.  
  2419.          set term aifm
  2420.          set term aifm 22
  2421.          set size 0.7,1.4
  2422.          set term aifm color "Times-Roman" 14
  2423.  
  2424. 4 atari ST
  2425. ?set terminal atari
  2426. ?atari
  2427.  The `atari` terminal has an option to set the character size and the
  2428.  screen colors.  The driver expects a space separated list the char size
  2429.  and maximal 16 3 digit hex numbers where each digit represents RED, GREEN
  2430.  and BLUE (in that order).  The range of 0-15 is scaled to whatever color
  2431.  range the screen actually has.  On a normal ST screen, odd and even
  2432.  intensities are the same.
  2433.  
  2434.  Examples:
  2435.  
  2436.         set terminal atari 4 # (use small (6x6) font)
  2437.         set terminal atari 6 0 # (set monochrome screen to white on black)
  2438.         set terminal atari 13 0 fff f00 f0 f ff f0f ff0
  2439.         # (set first eight colors to black, white, green, blue, cyan, \
  2440.           purple, and yellow and use large font (8x16).)
  2441.  
  2442.  Additionally, if an environment variable GNUCOLORS exists, its
  2443.  contents are interpreted as an options string, but an explicit terminal
  2444.  option takes precedence.
  2445.  
  2446. 4 dumb
  2447. ?set terminal dumb
  2448. ?dumb
  2449.  The dumb terminal driver has an optional size specification.
  2450.  
  2451.  Syntax:
  2452.          set terminal dumb {<xsize> <ysize>}
  2453.  
  2454.  where <xsize> and <ysize> set the size of the dumb terminals. Default
  2455.  is 79 by 24.
  2456.  
  2457.  Examples:
  2458.          set term dumb
  2459.          set term dumb 79 49 # VGA screen--why would anyone want to do that?
  2460. 4 epson
  2461. ?set terminal epson
  2462. ?set terminal epson180
  2463. ?set terminal epson60
  2464. ?set terminal starc
  2465. ?set terminal tandy60
  2466. ?epson
  2467.  
  2468.  This set of drivers support Epson printers and derivatives.   See also
  2469.  the NEC driver.  `epson` is a generic 9 wire printer with a resolution
  2470.  of 512x384. `starc` is a Star Color printer with the same resolution.
  2471.  `epson180` and `epson60` are 180 dpi and 60 dpi drivers for newer
  2472.  24 wire printers.  This also includes bubble jet printers.  Their
  2473.  resolutions are 1260x1080 and 480x360, respectively.  The `tandy60`
  2474.  is identical to the `epson60` driver with one additional escape
  2475.  sequence to start IBM mode.  With all of these drivers, a binary
  2476.  copy is required on a PC to print.  Do not use `print`.
  2477.  
  2478.         copy file /b lpt1:
  2479.  
  2480.  
  2481. 4 gpic
  2482. ?set terminal gpic
  2483. ?gpic
  2484.  
  2485.  This driver is only known to work the Free Software Foundation
  2486.  gpic/groff package.  Modification for the Document Workbench
  2487.  pic/troff package would be appreciated.  FSF gpic can also
  2488.  produce TeX output.
  2489.  
  2490.  A simple graph can be formatted using
  2491.  
  2492.       groff -p -mpic -Tps file.pic > file.ps.
  2493.  
  2494.  The output from pic can be pipe-lined into eqn, so it is possible to put
  2495.  complex functions in a graph with the set label and set {x/y}label commands.
  2496.  For instance,
  2497.  
  2498.     set ylab '@space 0 int from 0 to x alpha ( t ) roman d t@'
  2499.  
  2500.  Will label the y-axis with a nice integral if formatted with the
  2501.  command:
  2502.  
  2503.     gpic filename.pic | geqn -d@@ -Tps | groff -m[macro-package] -Tps
  2504.          > filename.ps
  2505.  
  2506.  Figures made this way can be scaled to fit into a document. The pic
  2507.  language is easy to understand, so the graphs can be edited by hand if
  2508.  need be. All coordinates in the pic-file produced by gnuplot are given
  2509.  as x+gnuplotx and y+gnuploty. By default x and y are given the value 0
  2510.  If this line is removed with an editor in a number of files one can
  2511.  put several graphs i one figure like this (default size is 5.0x3.0 inches)
  2512.  
  2513.     .PS 8.0
  2514.     x=0;y=3
  2515.     copy "figa.pic"
  2516.     x=5;y=3
  2517.     copy "figb.pic"
  2518.     x=0;y=0
  2519.     copy "figc.pic"
  2520.     x=5;y=0
  2521.     copy "figd.pic"
  2522.     .PE
  2523.  
  2524.  This will produce an 8 inches wide figure with four graphs in two rows
  2525.  on top of each other
  2526.  
  2527.  One can also achieve the same thing by the command
  2528.  
  2529.    set term pic x y
  2530.  
  2531.  For example, using
  2532.  
  2533.    .PS 6.0
  2534.    copy "trig.pic"
  2535.    .PE
  2536.  
  2537. 4 hpljii
  2538. ?set terminal hpljii
  2539. ?hpljii
  2540.  The HP LaserJet II and HP DeskJet drivers have a single option.
  2541.  
  2542.  Syntax:
  2543.          set terminal hpljii {<resolution>}
  2544.          set terminal hpdj   {<resolution>}
  2545.  
  2546.  where <resolution> is the resolution of the output in dots per inch.
  2547.  It must be `75`, `100`, `150` or `300`.  Note: there must be
  2548.  enough memory available to rasterize at the higher resolutions.
  2549.  
  2550.  Example:
  2551.          set terminal hpljii 150
  2552.  
  2553. 4 latex
  2554. ?set terminal latex
  2555. ?latex
  2556.  The LaTeX and EMTeX driver allows one to specify a font type and a font
  2557.  size for the labels around a gnuplot graph.
  2558.  
  2559.  Options are:
  2560.  Fonts:
  2561.        default          (Roman 10 point)
  2562.        courier
  2563.        roman
  2564.  
  2565.  at any size you specify. (BEWARE METAFONT will not like odd sizes.)
  2566.  eg.
  2567.        gnuplot> set term latex courier 5
  2568.  
  2569.  Unless your driver is capable of building fonts at any size (e.g. dvips),
  2570.  stick to the standard 10, 11 and 12 point size.
  2571.  
  2572. 4 iris4d
  2573. ?set terminal iris4d
  2574. ?iris4d
  2575.  The iris4d driver can operate in two modes.
  2576.  
  2577.  Syntax:
  2578.          set terminal iris4d {24}
  2579.  
  2580.  If the hardware supports only 8 bits, use the default
  2581.  `set terminal iris4d`. If, however, the hardware supports 24 bits
  2582.  (8 per red/green/blue), use `set terminal iris4d 24`.
  2583.  
  2584.  When using 24-bit mode, the colors can be directly specified via the
  2585.  file .gnuplot_iris4d that is searched in the current directory and
  2586.  then in the home directory specified by the HOME environment variable.
  2587.  This file holds RGB values for the background, border, labels and nine
  2588.  plotting colors, in that order. For example, here is a file containing
  2589.  the default colors:
  2590.  
  2591.          85   85   85     /* Back Ground */
  2592.          0    0    0      /* Boundary */
  2593.          170  0    170    /* Labeling */
  2594.          85   255  255    /* Plot Color 1 */
  2595.          170  0    0      /* Plot Color 2 */
  2596.          0    170  0      /* Plot Color 3 */
  2597.          255  85   255    /* Plot Color 4 */
  2598.          255  255  85     /* Plot Color 5 */
  2599.          255  85   85     /* Plot Color 6 */
  2600.          85   255  85     /* Plot Color 7 */
  2601.          0    170  170    /* Plot Color 8 */
  2602.          170  170  0      /* Plot Color 9 */
  2603.  
  2604.  This file has exactly 12 lines of RGB triples. No empty lines are
  2605.  allowed and anything after the third number in line is ignored.
  2606.  
  2607. 4 mf
  2608. ?set terminal mf
  2609. ?mf
  2610. ?metafont
  2611.  The mf terminal driver creates a input file to the MetaFont program.
  2612.  Thus a figure may be used in the TeX document in the same way as a
  2613.  character is.
  2614.  
  2615.  To use the plot in a document the MetaFont program must be run
  2616.  with the output file from GnuPlot as input. Thus, the user needs a basic
  2617.  knowledge of the font creating process and inclusion of a new font in a
  2618.  document. However, if the Metafont program is set up properly at the
  2619.  local site an unexperienced user could perform the operation without
  2620.  much trouble.
  2621.  
  2622.  The text support is based on a MetaFont character set.
  2623.  Currently the Computer Modern Roman font set is input but the
  2624.  user are in principal free to chose whatever fonts he/she needs.
  2625.  The MetaFont source files for the chosen font must be available.
  2626.  Each character is stored in a separate picture variable in MetaFont. These
  2627.  variables may be manipulated (rotated, scaled etc.) when characters are
  2628.  needed. The drawback is the interpretation time in the MetaFont
  2629.  program. On some machines (i.e. PC) the limited amount of memory available
  2630.  may also cause problem if too many pictures are stored.
  2631.  
  2632. 5 Metafont Instructions
  2633. ?set terminal mf detailed
  2634. ?mf detailed
  2635. ?metafont detailed
  2636.  
  2637.  - Set your terminal to metafont:
  2638.    set terminal mf
  2639.  - Select an output-file, e.g.:
  2640.    set output "myfigures.mf"
  2641.  - Do your plots. Each plot will generate a separate character. Its default
  2642.  size will be 5*3 inches. You can change the size by saying set size 0.5,0.5
  2643.  or whatever fraction of the default size you want to have.
  2644.  
  2645.  - Quit gnuplot.
  2646.  
  2647.  - Generate a tfm- and gf-file by running metafont on the output of gnuplot.
  2648.  Since the plot is quite large (5*3 in), you will have to use a version
  2649.  of metafont that has a value of at least 150000 for memmax. On Unix-systems
  2650.  these are conventionally installed under the name bigmf. For the following
  2651.  assume that the command virmf stands for a big version of metafont. For example:
  2652.  
  2653.  - Invoke metafont:
  2654.      virmf '&plain'
  2655.  - Select the output device: At the metafont prompt ('*') type:
  2656.      \mode:=CanonCX;     % or whatever printer you use
  2657.  - Optionally select a magnification:
  2658.      mag:=1;             % or whatever you wish
  2659.  - Input the gnuplot-file:
  2660.      input myfigures.mf
  2661.  On a typical Unix machine there will usually be a script called mf that
  2662.  executes virmf '&plain', so you probably can substitute mf for virmf &plain.
  2663.  This will generate two files: mfput.tfm and mfput.$$$gf (where $$$ indicates
  2664.  the resolution of your device). The above can be conveniently achieved by
  2665.  typing everything on the command line, e.g.:
  2666.  virmf '&plain' '\mode:=CanonCX; mag:=1; input myfigures.mf'
  2667.  In this case the output files will be named myfigures.tfm and
  2668.  myfigures.300gf.
  2669.  
  2670.  - Generate a pk-file from the gf-file using gftopk:
  2671.    gftopk myfigures.300gf myfigures.300pk
  2672.  The name of the output-file for gftopk depends on the dvi-driver you use.
  2673.  Ask your local TeX-administrator about the naming conventions.
  2674.  Next, either install the tfm- and pk-files in the appropriate directories,
  2675.  or set your environment-variables properly. Usually this involves setting
  2676.  TEXFONTS to include the current directory and do the same thing for the
  2677.  environment-variable that your dvi-driver uses (no standard name here...).
  2678.  This step is necessary so that TeX will find the font-metric file and your
  2679.  dvi-driver will find the pk-file.
  2680.  
  2681.  - To include your plots in your document you have to tell TeX the font:
  2682.    \font\gnufigs=myfigures
  2683.  Each plot you made is stored in a single character. The first plot is
  2684.  character 0, the second is character 1, and so on... After doing the above
  2685.  step you can use the plots just like any other characters. Therefore, to
  2686.  place plots 1 and 2 centered in your document, all you have to do is:
  2687.    \centerline{\gnufigs\char0}
  2688.    \centerline{\gnufigs\char1}
  2689.  in plain TeX. For LaTeX you can, of course, use the picture environment
  2690.  and place the plot according to your wishes using the \makebox and \put
  2691.  macros.
  2692.  
  2693.  It saves you a lot of time, once you have generated the
  2694.  font, since TeX handles the plots as characters and uses minimal time to
  2695.  place them. Also the documents you make change more often, than the plots
  2696.  do. Also it saves a lot of TeX-memory. One last advantage of
  2697.  using the metafont-driver is that the dvi-file really remains device
  2698.  independent, because no \special-commands are used as in the eepic- and
  2699.  tpic-drivers.
  2700. 4 mif
  2701. ?set terminal mif
  2702. ?mif
  2703.  Several options may be set in the MIF 3.00 driver.
  2704.  
  2705.  Syntax:
  2706.       set terminal mif {<pentype>} {<curvetype>} {<help>}
  2707.  
  2708.  <pentype> selects "colour" of the graphics.
  2709.       `colour`     plot lines with line types >= 0 in colour (MIF sep. 2-7).
  2710.       `monochrome` plot all line types in black (MIF sep. 0).
  2711.  <curvetype> selects how "curves" are plotted.
  2712.       `polyline`   plot curves as continuous curves.
  2713.       `vectors`    plot curves as collections of vectors
  2714.  <help> print online help on standard error output.
  2715.       `help`       print a short description of the usage, and the options
  2716.       `?`          print a short description of the usage
  2717.  
  2718.  This terminal driver produces Frame Maker MIF format version 3.00. It
  2719.  plots in MIF Frames with the size 15*10 [cm], and plot primitives with
  2720.  the same pen will be grouped in the same MIF group. Plot primitives in
  2721.  a gnuplot plot will be plotted in a MIF Frame, and several MIF Frames
  2722.  are collected in one large MIF Frame.
  2723.  Plot primitives with line types >= 0 will as default be drawn in colour.
  2724.  As default curves are plotted as continuous lines. The MIF font used for
  2725.  text is "Times".
  2726.  
  2727.  Examples:
  2728.  
  2729.       set term mif
  2730.       set term mif vectors
  2731.       set term mif help
  2732.  
  2733.  
  2734. 4 nec-cp6
  2735. ?set terminal nec-cp6
  2736. ?nec-cp6
  2737.  One option may be set in the nec-cp6 driver.  The resolution of this
  2738.  driver is 400x320.
  2739.  
  2740.  Syntax:
  2741.          set terminal nec-cp6 monochrome
  2742.          set terminal nec-cp6 color
  2743.          set terminal nec-cp6 draft
  2744.  
  2745. 4 pbm
  2746. ?set terminal pbm
  2747. ?pbm
  2748.  Several options may be set in the PBMplus driver.
  2749.  
  2750.  Syntax:
  2751.          set terminal pbm {<fontsize>} {<colormode>}
  2752.  
  2753.  where <fontsize> is `small`, `medium`, or `large` and <colormode> is
  2754.  `monochrome`, `gray` or `color`.
  2755.  Default size is 640 pixels wide and 480 pixels high.
  2756.  The output for `monochrome` is a portable bitmap (one bit per pixel).
  2757.  The output for `gray` is a portable graymap (three bits per pixel).
  2758.  The output for `color` is a portable pixmap (color, four bits per pixel).
  2759.  The output of these drivers can be used with Jef Poskanzer's
  2760.  excellent PBMPLUS package which provides programs to convert
  2761.  the above PBMPLUS formats to GIF, TIFF, MacPaint, Macintosh PICT,
  2762.  PCX, X11 bitmap and many others.
  2763.  
  2764.  Examples:
  2765.  
  2766.          set term pbm small
  2767.          set size 2,2
  2768.          set term pbm color medium
  2769.  
  2770. 4 pcl5
  2771. ?set terminal pcl5
  2772. ?pcl5
  2773.  Three options may be set in the pcl5 driver.  The driver
  2774.  actually uses HPGL-2 but there is a name conflict among
  2775.  the terminal devices.
  2776.  
  2777.  Syntax:
  2778.          set terminal pcl5 {<mode>} {<font>} {<fontsize>}
  2779.  
  2780.  where <mode> is `landscape`, or `portrait`, <font> is `stick`,
  2781.  `univers`, or `cg_times`, and fontsize is the size in points.
  2782.          set terminal pcl5 landscape
  2783.  
  2784. 4 postscript
  2785. ?set terminal postscript
  2786. ?postscript
  2787.  Several options may be set in the PostScript driver.
  2788.  
  2789.  Syntax:
  2790.          set terminal postscript {<mode>} {<color>} {<dashed>}
  2791.                                  {"<fontname>"} {<fontsize>}
  2792.  
  2793.  where <mode> is `landscape`, `portrait`, `eps` or `default`.
  2794.  Selecting default sets all options to their defaults.
  2795.  <color> is either `color` or `monochrome`.
  2796.  <dashed> is either `solid` or `dashed`.
  2797.  "<fontname>" is the name of a valid PostScript font.
  2798.  <fontsize> is the size of the font in PostScript points.
  2799.  Defaults are `landscape`, `monochrome`, `dashed`, "Helvetica", and 14pt.
  2800.  Default size of PostScript plot is landscape mode 10 inches wide
  2801.  and 7 inches high.
  2802.  
  2803.  To get EPS output, use the `eps` mode and make only one plot per file.
  2804.  In `eps` mode the whole plot is halved in size; the fonts are half the
  2805.  given size, and the plot is 5 inches wide and 3.5 inches high.
  2806.  
  2807.  Examples:
  2808.  
  2809.          set term postscript default       # old postscript
  2810.          set term postscript landscape 22  # old psbig
  2811.          set term postscript eps 14   # old epsf1
  2812.          set term postscript eps 22   # old epsf2
  2813.          set size 0.7,1.4
  2814.          set term post portrait color "Times-Roman" 14
  2815.  
  2816. 4 regis
  2817. ?set terminal regis
  2818. ?table
  2819.  The `regis` terminal device has the option of using 4 or 16
  2820.  colors.  The default is 4.  For example:
  2821.         set term regis 16
  2822.  
  2823. 4 table
  2824. ?set terminal table
  2825. ?table
  2826.  Instead of producing a picture, term type `table` prints out
  2827.  the evaluation results in a multicolumn ASCII table of X Y Z values.
  2828.  For those times when you really want to see the numbers, now you
  2829.  can see them on the screen or save to a file.
  2830.  
  2831. 4 windows
  2832. ?set terminal windows
  2833. ?windows
  2834.  Three options may be set in the windows driver.
  2835.  
  2836.  Syntax:
  2837.          set terminal windows {<color>} {"<fontname>"} {<fontsize>}
  2838.  
  2839.  `<color>` is either `color` or `monochrome`.
  2840.  `"<fontname>"` is the name of a valid Windows font.
  2841.  `<fontsize>` is the size of the font in points.
  2842.  
  2843. 5 graph-menu
  2844. ?set terminal windows graph-menu
  2845. ?graph-menu
  2846.  The `gnuplot graph` window has the following options on a pop up menu
  2847.  accessed by pressing the right mouse button or selecting `Options`
  2848.  from the system menu:
  2849.  
  2850.  `Bring to Top` when checked brings the graph window to
  2851.  the top after every plot.
  2852.  
  2853.  `Color` when checked enables color linestyles.
  2854.  When unchecked it forces monochrome linestyles.
  2855.  
  2856.  `Copy to Clipboard` copies a bitmap and a Metafile picture.
  2857.  
  2858.  `Background...` sets the window background color.
  2859.  
  2860.  `Choose Font...` selects the font used in the graphics window.
  2861.  
  2862.  `Line Styles...` allows customization of the line colors
  2863.  and styles.
  2864.  
  2865.  `Print...` prints the graphics windows using a Windows printer
  2866.  driver and allows selection of the printer and scaling of the output.
  2867.  The output produced by `Print` is not as good as that from gnuplot's
  2868.  own printer drivers.
  2869.  
  2870.  `Update wgnuplot.ini` saves the current window locations, window
  2871.  sizes, text window font, text window font size, graph window font,
  2872.  graph window font size, background color and linestyles to the
  2873.  initialisation file `WGNUPLOT.INI`.
  2874.  
  2875. 5 printing
  2876. ?set terminal windows printing
  2877. ?printing
  2878.  In order of preference, graphs may be be printed in the
  2879.  following ways.
  2880.  
  2881.  `1.` Use the gnuplot command `set terminal` to select a printer
  2882.  and `set output` to redirect output to a file.
  2883.  
  2884.  `2.` Select the `Print...` command from the `gnuplot graph` window.
  2885.  An extra command `screendump` does this from the text window.
  2886.  
  2887.  `3.` If `set output "PRN"` is used, output will go to a temporary file.
  2888.  When you exit from gnuplot or when you change the output with another
  2889.  `set output` command, a dialog box will appear for you to select
  2890.  a printer port.  If you choose OK, the output will be printed
  2891.  on the selected port, passing unmodified through the print
  2892.  manager.  It is possible to accidently (or deliberately) send
  2893.  printer output meant for one printer to an incompatible printer.
  2894.  
  2895. 5 text-menu
  2896. ?set terminal windows text-menu
  2897. ?text-menu
  2898.  The `gnuplot text` window has the following options on a pop up menu
  2899.  accessed by pressing the right mouse button or selecting `Options`
  2900.  from the system menu:
  2901.  
  2902.  `Copy to Clipboard` copies marked text to the clipboard.
  2903.  
  2904.  `Paste` copies text from the clipboard as if typed by the user.
  2905.  
  2906.  `Choose Font...` selects the font used in the text window.
  2907.  
  2908.  `System Colors` when selected makes the text window honor the
  2909.  System Colors set using the Control Panel.  When unselected,
  2910.  text is black or blue on a white background.
  2911.  
  2912.  `Update wgnuplot.ini` saves the current text window location, text
  2913.  window size, text window font and text window font size to the
  2914.  initialisation file `WGNUPLOT.INI`.
  2915.  
  2916.  `MENU BAR`
  2917.  
  2918.  If the menu file `WGNUPLOT.MNU` is found in the same directory as
  2919.  WGNUPLOT.EXE, then the menu specified in `WGNUPLOT.MNU` will
  2920.  be loaded.
  2921.  
  2922.  Menu commands are:
  2923.    [Menu]       Start a new menu with the name on the following line
  2924.    [EndMenu]    End current menu.
  2925.    --           Insert a horizontal menu separator
  2926.    |            Insert a vertical menu separator
  2927.    [Button]     Put next macro on a push button instead of a menu.
  2928.  
  2929.  Macros take two lines with the macro name (menu entry) on the first
  2930.  line and the macro on the second line.  Leading spaces are ignored.
  2931.  
  2932.  Macros commands are:
  2933.    [INPUT]      Input string with prompt terminated by [EOS] or {ENTER}
  2934.    [EOS]        End Of String terminator.  Generates no output.
  2935.    [OPEN]       Get name of file to open from list box, with title of
  2936.                 list box terminated by [EOS], followed by default
  2937.                 filename terminated by [EOS] or {ENTER}
  2938.                 This uses COMMDLG.DLL from Windows 3.1.
  2939.    [SAVE]       Get name of file to save.  Similar to [OPEN]
  2940.  
  2941.  Macros character substitutions are:
  2942.    {ENTER}      Carriage Return '\r'
  2943.    {TAB}        Tab     '\011'
  2944.    {ESC}        Escape  '\033'
  2945.    {^A}         '\001'
  2946.    ...
  2947.    {^_}         '\031'
  2948.  
  2949.  Macros are limited to 256 characters after expansion.
  2950.  
  2951. 5 wgnuplot.ini
  2952. ?set terminal windows wgnuplot.ini
  2953. ?wgnuplot.ini
  2954.  Windows gnuplot will read some of its options from the `[WGNUPLOT]` section
  2955.  of `WGNUPLOT.INI` in the Windows directory.
  2956.  An example `WGNUPLOT.INI` file is shown below.
  2957.   [WGNUPLOT]
  2958.   TextOrigin=0 0
  2959.   TextSize=640 150
  2960.   TextFont=Terminal,9
  2961.   GraphOrigin=0 150
  2962.   GraphSize=640 330
  2963.   GraphFont=Arial,10
  2964.   GraphColor=1
  2965.   GraphToTop=1
  2966.   GraphBackground=255 255 255
  2967.   Border=0 0 0 0 0
  2968.   Axis=192 192 192 2 2
  2969.   Line1=0 0 255 0 0
  2970.   Line2=0 255 0 0 1
  2971.   Line3=255 0 0 0 2
  2972.   Line4=255 0 255 0 3
  2973.   Line5=0 0 128 0 4
  2974.  The `GraphFont` entry specifies the font name and size in points.
  2975.  The 5 numbers given in the `Border`, `Axis` and `Line` entries are
  2976.  the `Red` intensity (0-255), `Green` intensity, `Blue` intensity,
  2977.  `Color Linestyle` and `Mono Linestyle`.
  2978.  `Linestyles` are 0=SOLID, 1=DASH, 2=DOT, 3=DASHDOT, 4=DASHDOTDOT.
  2979.  In the example `WGNUPLOT.INI` file above, Line 2 is a green solid
  2980.  line in color mode, or a dashed line in monochrome mode.
  2981.  The default line width is 1 pixel.  If `Linestyle` is negative it
  2982.  specifies the width of a SOLID line in pixels.
  2983.  Line1 and any linestyle used with the `points` style must be
  2984.  SOLID with unit width.
  2985.  
  2986. 5 windows3.0
  2987. ?set terminal windows windows3.0
  2988. ?windows3.0
  2989.  Windows 3.1 is preferred, but WGNUPLOT will run under Windows 3.0
  2990.  with the following restrictions:
  2991.  
  2992.  `1.` COMMDLG.DLL and SHELL.DLL (available with Windows 3.1 or Borland C++ 3.1)
  2993.  must be in the windows directory.
  2994.  
  2995.  `2.` WGNUPLOT.HLP produced by Borland C++ 3.1 is in Windows 3.1 format.
  2996.  You need to use the WINHELP.EXE supplied with Borland C++ 3.1.
  2997.  
  2998.  `3.` It won't run in real mode due to lack of memory.
  2999.  
  3000.  `4.` Truetype fonts are not available in the graph window.
  3001.  
  3002.  `5.` Drag-drop does not work.
  3003.  
  3004. 3 tics
  3005. ?set tics
  3006. ?show tics
  3007. ?tics
  3008.  By default, tics are drawn inwards from the border on all four sides.
  3009.  The `set tics` command can be used to change the tics to be
  3010.  drawn outwards on the left and bottom borders only.
  3011.  This is useful when doing impulse plots.
  3012.  
  3013.  Syntax:
  3014.          set tics {<direction>}
  3015.          show tics
  3016.  
  3017.  where <direction> may be `in` or `out`. `set tics` defaults to `in`.
  3018.  
  3019.  See also the `set xtics`, `set ytics`, and `set ztics` command for more
  3020.  control of tic marks.
  3021. ?set ticslevel
  3022. ?show ticslevel
  3023. ?ticslevel
  3024.  Using splot, in 3-d plots, one can adjust the relative height of the
  3025.  vertical (Z) axis using `set ticslevel`. The numeric argument provided
  3026.  specifies the location of the bottom of the scale. a zero will put it
  3027.  on the bottom grid and any positive number somewhere along the z axis.
  3028.  
  3029.  Syntax:
  3030.          set ticslevel {<level>}
  3031.          show tics
  3032.  
  3033.  where <level> is a non negative numeric argument. For example,
  3034.  
  3035.          set ticslevel 0.5
  3036.  
  3037.  sets the tics level to the default value.
  3038.  
  3039.  See also the `set view`.
  3040. 3 time
  3041. ?set time
  3042. ?show time
  3043. ?time
  3044.  The optional `set time` places the time and date of the plot either
  3045.  at the top or bottom of the left margin. The exact location is
  3046.  device dependent.
  3047.  
  3048.  Syntax:
  3049.          set time {<xoff>}{,<yoff>}
  3050.          set notime
  3051.          show time
  3052.  
  3053.  Specifying constants <xoff> or <yoff> as optional offsets for the time
  3054.  will move the time <xoff> or <yoff> character screen coordinates. For
  3055.  example,
  3056.  
  3057.          set time ,-3
  3058.  
  3059.  will change only the y offset of the time, moving the title down by
  3060.  roughly the height of three characters.
  3061.  
  3062. 3 title
  3063. ?set title
  3064. ?show title
  3065. ?title
  3066.  The `set title` command produces a plot title that is centered at the
  3067.  top of the plot. Using the optional x,y screen offsets, the title
  3068.  can be placed anywhere on the plot. `set title` with no parameters
  3069.  clears the title.
  3070.  
  3071.  Syntax:
  3072.           set title {"<title-text>"} {<xoff>}{,<yoff>}
  3073.           show title
  3074.  
  3075.  Specifying constants <xoff> or <yoff> as optional offsets for the
  3076.  title will move the title <xoff> or <yoff> character screen
  3077.  coordinates. Note these are screen coordinates and not plot
  3078.  coordinates. For example,
  3079.  
  3080.           set title ,-1
  3081.  
  3082.  will change only the y offset of the title, moving the title down by
  3083.  roughly the height of one character.
  3084.  
  3085.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3086.  a newline.)
  3087. 3 trange
  3088. ?set trange
  3089. ?show trange
  3090. ?trange
  3091.  The `set trange` command sets the parametric range used to compute
  3092.  x and y values when in parametric mode. If not in parametric mode
  3093.  (see `set parametric`) then this range is not used. This command
  3094.  does not affect x/y autoscaling or x/y ranges.
  3095.  
  3096.  This range may also be specified on the `plot` command line when
  3097.  in parametric mode.
  3098.  
  3099.  Syntax:
  3100.          set trange [{<tmin> : <tmax>}]
  3101.  
  3102.  where <tmin> and <tmax> terms are constants or expressions.
  3103.  
  3104.  Both the <tmin> and <tmax> terms are optional. Anything omitted will
  3105.  not be changed, so
  3106.          set trange [:10]
  3107.  changes tmax to 10 without affecting tmin.  See also `set urange` and
  3108.  `set parametric`.
  3109. 3 urange
  3110. ?set urange
  3111. ?show urange
  3112. ?urange
  3113.  The `set urange` and `set vrange` commands sets the parametric ranges used
  3114.  to compute x, y, and z values when in `splot` parametric mode. If not in
  3115.  parametric mode (see `set parametric`) then these ranges are not used. This
  3116.  command does not affect x/y autoscaling or x/y ranges.
  3117.  
  3118.  This range may also be specified on the `splot` command line when
  3119.  in parametric mode.  See `plot` for more information
  3120.  
  3121.  Syntax:
  3122.          set urange [{<umin> : <umax>}]
  3123.  
  3124.  where <umin> and <umax> terms are constants or expressions.
  3125.  
  3126.  Both the <umin> and <umax> terms are optional. Anything omitted will
  3127.  not be changed, so
  3128.          set urange [:10]
  3129.  changes umax to 10 without affecting umin.  See also `set trange`.
  3130. 3 variables
  3131. ?show variables
  3132.  The `show variables` command lists all user-defined variables and
  3133.  their values.
  3134.  
  3135.  Syntax:
  3136.          show variables
  3137. 3 view
  3138. ?set view
  3139. ?show view
  3140. ?view
  3141.  The `set view` command sets the view point for `splot`s. This
  3142.  command controls the way the 3-d coordinates of the plot are mapped
  3143.  into the 2-d screen space. This command provides controls to both
  3144.  rotation and scaling of the plotted data but supports orthographic
  3145.  projections only.
  3146.  
  3147.  Syntax:
  3148.          set view <rot_x> {,{<rot_z>}{,{<scale>}{,<scale_z>}}}
  3149.          show view
  3150.  
  3151.  where <rot_x> and <rot_z> control the rotation angles (in degrees)
  3152.  along a virtual 3-d coordinate system aligned with the screen such
  3153.  that the screen horizontal axis is x, screen vertical axis is y, and
  3154.  the axis perpendicular to the screen is z. <rot_x> is bounded to the
  3155.  [0:180] range with a default of 60 degrees, while <rot_z> is bounded
  3156.  to the [0:360] range with a default of 30 degrees. <scale> controls
  3157.  the scaling of the entire `splot`, while <scale_z> scales the z axis
  3158.  only. Both scales default to 1.0.
  3159.  
  3160.  Examples:
  3161.          set view 60, 30, 1, 1
  3162.          set view ,,0.5
  3163.  
  3164.  The first sets all the four default values. The second changes
  3165.  only scale, to 0.5.
  3166.  
  3167.  See also `set ticslevel`.
  3168. 3 vrange
  3169. ?set vrange
  3170. ?show vrange
  3171. ?vrange
  3172.  The `set vrange` command is similar to the `set urange` command.
  3173.  Please see `set urange`.
  3174. 3 xlabel
  3175. ?set xlabel
  3176. ?show xlabel
  3177. ?xlabel
  3178.  The `set xlabel` command sets the x-axis label that is centered along
  3179.  the x axis. Using the optional x,y screen offsets, the label can be
  3180.  placed anywhere on the plot. `set xlabel` with no parameters clears
  3181.  the label.
  3182.  
  3183.  Syntax:
  3184.           set xlabel {"<label>"} {<xoff>}{,<yoff>}
  3185.           show xlabel
  3186.  
  3187.  Specifying constants <xoff> or <yoff> as optional offsets for the
  3188.  label will move the label <xoff> or <yoff> character screen
  3189.  coordinates. For example,
  3190.  
  3191.           set xlabel -1
  3192.  
  3193.  will change only the x offset of the xlabel, moving the label roughly
  3194.  one character width to the left.
  3195.  
  3196.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3197.  a newline.)
  3198. 3 xrange
  3199. ?set xrange
  3200. ?show xrange
  3201. ?xrange
  3202.  The `set xrange` command sets the horizontal range that will be
  3203.  displayed. This command turns x axis autoscaling off.
  3204.  
  3205.  This range may also be specified on the `plot` command line.
  3206.  
  3207.  Syntax:
  3208.          set xrange [{<xmin> : <xmax>}]
  3209.  
  3210.  where <xmin> and <xmax> terms are constants or expressions.
  3211.  
  3212.  Both the <xmin> and <xmax> terms are optional. Anything omitted will
  3213.  not be changed, so
  3214.          set xrange [:10]
  3215.  changes xmax to 10 without affecting xmin.
  3216. 3 xtics
  3217. ?set xtics
  3218. ?set noxtics
  3219. ?show xtics
  3220. ?xtics
  3221. ?noxtics
  3222.  Fine control of the x axis tic marks is possible with the
  3223.  `set xtics` command. The x-axis tic marks may be turned off with the
  3224.  `set noxtics` command. They may be turned on (the default state) with
  3225.  `set xtics`.
  3226.  
  3227.  Syntax:
  3228.           set xtics { {<start>, <incr>{, <end>}} |
  3229.                       {({"<label>"} <pos> {, {"<label>"} <pos>}...)} }
  3230.           set noxtics
  3231.           show xtics
  3232.  
  3233.  The <start>, <incr>, <end> form specifies that a series of tics will
  3234.  be plotted on the x axis between the x values <start> and <end>
  3235.  with an increment of <incr>. If <end> is not given it is assumed to be
  3236.  infinity. The increment may be negative. For example,
  3237.            set xtics 0,.5,10
  3238.  makes tics at 0, 0.5, 1, 1.5, ..., 9.5, 10.
  3239.  
  3240.  The ("<label>" <pos>, ...) form allows arbitrary tic positions or
  3241.  non-numeric tic labels. A set of tics are a set of positions, each
  3242.  with its own optional label. Note that the label is a string enclosed
  3243.  by quotes, and may be a constant string, such as "hello", or contain
  3244.  formatting information for the tic number (which is the same as the
  3245.  position), such as "%3f clients". See `set format` for more
  3246.  information about this case. The label may even be empty.
  3247.  Examples:
  3248.           set xtics ("low" 0, "medium" 50, "high" 100)
  3249.           set xtics (1,2,4,8,16,32,64,128,256,512,1024)
  3250.           set xtics ("bottom" 0, "" 10, "top" 20)
  3251.  
  3252.  Tics will only be plotted when in range.
  3253.  
  3254.  The `set ytics` and `set noytics` commands work identically.
  3255.  See also the `set format` command.
  3256. 3 xdtics
  3257. ?set xdtics
  3258. ?set noxdtics
  3259. ?show xdtics
  3260. ?xdtics
  3261. ?noxdtics
  3262.  The `set xdtics` commands converts the x axis tic marks to days of
  3263.  the week where 0=Sun and 6=Sat.  Overflows are converted modulo 7
  3264.  to dates.
  3265.  
  3266.  Examples:
  3267.         set xdtics
  3268.  
  3269.  Sets x axis tics in days.
  3270.  
  3271.  The `set ydtics` `set zdtics` and `set noydtics` `set nozdtics` commands
  3272.  work identically.
  3273.  See also the `set format` command.
  3274.  
  3275. 3 xmtics
  3276. ?set xmtics
  3277. ?set noxmtics
  3278. ?show xmtics
  3279. ?xmtics
  3280. ?noxmtics
  3281.  The `set xmtics` commands converts the x axis tic marks to months of
  3282.  the years where 1=Jan and 12=Dec.  Overflows are converted modulo 12
  3283.  to months.
  3284.  
  3285.  Examples:
  3286.         set xmtics
  3287.  
  3288.  Sets x axis tics into months.
  3289.  
  3290.  The `set ymtics` `set zmtics` and `set noymtics` `set nozmtics` commands
  3291.  work identically.
  3292.  See also the `set format` command.
  3293.  
  3294. 3 xzeroaxis
  3295. ?set xzeroaxis
  3296. ?set noxzeroaxis
  3297. ?show xzeroaxis
  3298. ?xzeroaxis
  3299. ?noxzeroaxis
  3300.  `set xzeroaxis` draws the x-axis. By default, this option is on.
  3301.  `set noxzeroaxis` causes GNUPLOT to omit the x-axis.
  3302.  
  3303.  Syntax:
  3304.          set xzeroaxis
  3305.          set noxzeroaxis
  3306.          show xzeroaxis
  3307. 3 ylabel
  3308. ?set ylabel
  3309. ?show ylabel
  3310. ?ylabel
  3311.  The `set ylabel` command sets the y-axis label.  The position of this
  3312.  label depends on the terminal, and can be one of the following three
  3313.  positions (the position can be adjusted with optional parameters).
  3314.  
  3315.  1. Horizontal text flushed left at the top left of the plot.
  3316.  Terminals that cannot rotate text will probably use this method.
  3317.  
  3318.  2. Vertical text centered vertically at the left of the plot.
  3319.  Terminals that can rotate text will probably use this method.
  3320.  
  3321.  3. Horizontal text centered vertically at the left of the plot.
  3322.  The EEPIC, LaTeX and TPIC drivers use this method. The user must insert
  3323.  line breaks using \\ to prevent the ylabel from overwriting
  3324.  the plot. To produce a vertical row of characters, add \\
  3325.  between every printing character (but this is ugly).
  3326.  
  3327.  Syntax:
  3328.           set ylabel {"<label>"} {<xoff>}{,<yoff>}
  3329.           show ylabel
  3330.  
  3331.  With no parameters, the label is cleared. Specifying constants <xoff>
  3332.  or <yoff> as optional offsets for the label will move the label <xoff>
  3333.  or <yoff> character screen coordinates. For example,
  3334.  
  3335.           set ylabel -1
  3336.  
  3337.  will change only the x offset of the ylabel, moving the label roughly
  3338.  one character width left of its default position. This is especially
  3339.  useful with the LaTeX driver.
  3340.  
  3341.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3342.  a newline.)
  3343. 3 yrange
  3344. ?set yrange
  3345. ?show yrange
  3346. ?yrange
  3347.  The `set yrange` command sets the vertical range that will be
  3348.  displayed. This command turns y axis autoscaling off.
  3349.  
  3350.  This range may also be specified on the `plot` command line.
  3351.  
  3352.  Syntax:
  3353.          set yrange [{<ymin> : <ymax>}]
  3354.  
  3355.  where <ymin> and <ymax> terms are constants or expressions.
  3356.  
  3357.  Both the <ymin> and <ymax> terms are optional. Anything omitted will
  3358.  not be changed, so
  3359.          set yrange [:10]
  3360.  changes ymax to 10 without affecting ymin.
  3361. 3 ytics
  3362. ?set ytics
  3363. ?set noytics
  3364. ?show ytics
  3365. ?ytics
  3366. ?noytics
  3367.  The `set ytics` and `set noytics` commands are similar to the `set xtics`
  3368.  and `set noxtics` commands. Please see `set xtics`.
  3369. 3 ydtics
  3370. ?set ydtics
  3371. ?set noydtics
  3372. ?show ydtics
  3373. ?ydtics
  3374. ?noydtics
  3375.  The `set ydtics` and `set noydtics` commands are similar to the `set xdtics`
  3376.  and `set noxdtics` commands. Please see `set xdtics`.
  3377. 3 ymtics
  3378. ?set ymtics
  3379. ?set noymtics
  3380. ?show ymtics
  3381. ?ymtics
  3382. ?noymtics
  3383.  The `set ymtics` and `set noymtics` commands are similar to the `set xmtics`
  3384.  and `set noxmtics` commands. Please see `set xmtics`.
  3385. 3 yzeroaxis
  3386. ?set yzeroaxis
  3387. ?set noyzeroaxis
  3388. ?show yzeroaxis
  3389. ?yzeroaxis
  3390. ?noyzeroaxis
  3391.  `set yzeroaxis` draws the y-axis. By default, this option is on.
  3392.  `set noyzeroaxis` causes GNUPLOT to omit the y-axis.
  3393.  
  3394.  Syntax:
  3395.          set yzeroaxis
  3396.          set noyzeroaxis
  3397.          show yzeroaxis
  3398. 3 zero
  3399. ?set zero
  3400. ?show zero
  3401. ?zero
  3402.  The `zero` value is the default threshold for values approaching 0.0.
  3403.  GNUPLOT will not plot a point if its imaginary part is greater in
  3404.  magnitude than the `zero` threshold. Axis ranges cannot be less than
  3405.  `zero`. The default `zero` value is 1e-8. This can be changed with
  3406.  the `set zero` command.
  3407.  
  3408.  Syntax:
  3409.          set zero <expression>
  3410.          show zero
  3411. 3 zeroaxis
  3412. ?set zeroaxis
  3413. ?set nozeroaxis
  3414. ?show zeroaxis
  3415. ?zeroaxis
  3416. ?nozeroaxis
  3417.  `set zeroaxis` draws the x-axis and y-axis. By default, this option is
  3418.  on.  `set nozeroaxis` causes GNUPLOT to omit the axes, and is
  3419.  equivalent to `set noxzeroaxis; set noyzeroaxis.`
  3420.  
  3421.  Syntax:
  3422.          set zeroaxis
  3423.          set nozeroaxis
  3424.          show zeroaxis
  3425.  See `set xzeroaxis` and `set yzeroaxis`.
  3426. 3 zlabel
  3427. ?set zlabel
  3428. ?show zlabel
  3429. ?zlabel
  3430.  The `set zlabel` command sets the z-axis label that is centered along
  3431.  the z axis. Using the optional x,y screen offsets, the label can be
  3432.  placed anywhere on the plot. `set zlabel` with no parameters clears
  3433.  the label.
  3434.  
  3435.  Syntax:
  3436.           set zlabel {"<label>"} {<xoff>}{,<yoff>}
  3437.           show zlabel
  3438.  
  3439.  Specifying constants <xoff> or <yoff> as optional offsets for the
  3440.  label will move the label <xoff> or <yoff> character screen
  3441.  coordinates. For example,
  3442.  
  3443.           set zlabel ,1
  3444.  
  3445.  will change only the y offset of the zlabel, moving the label roughly
  3446.  one character height up.
  3447.  
  3448.  The zlabel will be drawn whenever surfaces or contours are plotted,
  3449.  in the space above the grid level.
  3450.  
  3451.  (The EEPIC, Imagen, LaTeX, and TPIC drivers allow \\ in a string to specify
  3452.  a newline.)
  3453. 3 zrange
  3454. ?set zrange
  3455. ?show zrange
  3456. ?zrange
  3457.  The `set zrange` command sets the vertical range that will be
  3458.  displayed. This command turns z axis autoscaling off.  The zrange is
  3459.  used only by `splot` and is ignored by `plot`.
  3460.  
  3461.  This range may also be specified on the `splot` command line.
  3462.  
  3463.  Syntax:
  3464.          set zrange [{<zmin> : <zmax>}]
  3465.  
  3466.  where <zmin> and <zmax> terms are constants or expressions.
  3467.  
  3468.  Both the <zmin> and <zmax> terms are optional. Anything omitted will
  3469.  not be changed, so
  3470.          set zrange [2:]
  3471.  changes zmin to 2 without affecting zmax.
  3472. 3 ztics
  3473. ?set ztics
  3474. ?set noztics
  3475. ?show ztics
  3476. ?ztics
  3477. ?noztics
  3478.  The `set ztics` and `set noztics` commands are similar to the
  3479.  `set xtics` and `set noxtics` commands. Please see `set xtics`.
  3480. 3 zdtics
  3481. ?set zdtics
  3482. ?set nozdtics
  3483. ?show zdtics
  3484. ?zdtics
  3485. ?nozdtics
  3486.  The `set zdtics` and `set nozdtics` commands are similar to the
  3487.  `set xdtics` and `set noxdtics` commands. Please see `set xdtics`.
  3488.  
  3489. 3 zmtics
  3490. ?set zmtics
  3491. ?set nozmtics
  3492. ?show zmtics
  3493. ?zmtics
  3494. ?nozmtics
  3495.  The `set zmtics` and `set nozmtics` commands are similar to the
  3496.  `set xmtics` and `set noxmtics` commands. Please see `set xmtics`.
  3497. 2 shell
  3498. ?shell
  3499.  The `shell` command spawns an interactive shell. To return to
  3500.  GNUPLOT, type `logout` if using VMS, `exit` or the END-OF-FILE
  3501.  character if using Unix, `endcli` if using AmigaDOS, or `exit` if
  3502.  using MS-DOS or OS/2.
  3503.  
  3504.  A single shell command may be spawned by preceding it with the !
  3505.  character ($ if using VMS) at the beginning of a command line.
  3506.  Control will return immediately to GNUPLOT after this command is
  3507.  executed. For example, in VMS, AmigaDOS, MS-DOS or OS/2,
  3508.  
  3509.       ! dir
  3510.  
  3511.  prints a directory listing and then returns to GNUPLOT.
  3512.  
  3513.  On an Atari, the `!` command first checks whether a shell is already
  3514.  loaded and uses it, if available. This is practical if GNUPLOT is run
  3515.  from `gulam`, for example.
  3516. 2 splot
  3517. ?splot
  3518. ?surface plot
  3519.  Three-dimensional surface and contour plotting is available in
  3520.  GNUPLOT with the `splot` command. See the `plot` command for features
  3521.  common to the `plot` command.
  3522.  
  3523.  See also `set contour`, `set cntrparam`, and `set surface`.
  3524.  
  3525. 3 Binary Data
  3526. ?binary-data
  3527. ?binary files
  3528.  Gnuplot will dynamically determine if a datafile is ASCII or
  3529.  binary.  ASCII data files are discussed in the `plot` section.
  3530.  For three dimensions, single precision floats are stored as follows:
  3531.  
  3532.        <ncols> <x0> <x1> <x2> ...
  3533.        <y0> <z0,0> <z0,1> <z0,2> ...
  3534.        <y1> <z1,0> <z1,1> <z1,2> ...
  3535.  
  3536.  which is converted into triplet:
  3537.  
  3538.        <x0> <y0> <z0,0>
  3539.        <x0> <y1> <z0,1>
  3540.        <x0> <y2> <z0,2>
  3541.  
  3542.        <x1> <y0> <z1,0>
  3543.        <x1> <y1> <z1,1>
  3544.        <x1> <y2> <z1,2>
  3545.  
  3546.  These triplets are then converted into gnuplot iso_curves and then
  3547.  uses gnuplot to do the rest of the plotting.
  3548.  
  3549.  A collection of matrix and vector manipulation routines (in C) are
  3550.  provided in `gnubin.c`.  The routine to write binary data is
  3551.  
  3552.   int fwrite_matrix(file,m,nrl,nrl,ncl,nch,row_title,column_title)
  3553.  
  3554.  An example of using these routines is provided in the file `bf_test.c`.
  3555.  The corresponding demo file is `demo/binary.dem`.
  3556. 2 start-up
  3557. ?startup
  3558. ?start
  3559. ?.gnuplot
  3560.  When GNUPLOT is run, it looks for an initialization file to load.
  3561.  This file is called `.gnuplot` on Unix and AmigaDOS systems, and
  3562.  `GNUPLOT.INI` on other systems. If this file is not found in the
  3563.  current directory, the program will look for it in the home directory
  3564.  (under AmigaDOS, AtariTOS, MS-DOS and OS/2, the environment variable
  3565.  GNUPLOT should contain the name of this directory).  Note: if NOCWDRC
  3566.  is defined during the installation, GNUPLOT will not read from the
  3567.  current directory.
  3568.  
  3569.  If this file is found, GNUPLOT executes the commands in this file.
  3570.  This is most useful for setting the terminal type and defining any
  3571.  functions or variables that are used often.
  3572. 2 substitution
  3573. ?substitution
  3574.  Command-line substitution is specified by a system command enclosed in
  3575.  backquotes. This command is spawned and the output it produces
  3576.  replaces the name of the command (and backquotes) on the command line.
  3577.  
  3578.  Newlines in the output produced by the spawned command are replaced
  3579.  with blanks.
  3580.  
  3581.  Command-line substitution can be used anywhere on the GNUPLOT command
  3582.  line.
  3583.  
  3584.  Example:
  3585.  
  3586.  This will run the program `leastsq` and replace `leastsq` (including
  3587.  backquotes) on the command line with its output:
  3588.  
  3589.           f(x) = `leastsq`
  3590.  
  3591.  or, in VMS
  3592.  
  3593.           f(x) = `run leastsq`
  3594. 2 update
  3595. ?update
  3596.  Syntax: update <filename>
  3597.  
  3598.  This command updates the start parameter assignments in a start parameter
  3599.  file as specified in the `fit` section. Each parameter will be replaced
  3600.  by its actual value. This is useful for restarting a converged or stopped
  3601.  fit again.
  3602.  
  3603.  SEE ALSO: fit
  3604. 2 user-defined
  3605. ?userdefined
  3606. ?variables
  3607.  New user-defined variables and functions of one through five variables may
  3608.  be declared and used anywhere.
  3609.  
  3610.  User-defined function syntax:
  3611.          <function-name> ( <dummy1> {,<dummy2> {, ...} } ) = <expression>
  3612.  
  3613.  where <expression> is defined in terms of <dummy1> through <dummy5>.
  3614.  
  3615.  User-defined variable syntax:
  3616.          <variable-name> = <constant-expression>
  3617.  
  3618.  Examples:
  3619.          w = 2
  3620.          q = floor(tan(pi/2 - 0.1))
  3621.          f(x) = sin(w*x)
  3622.          sinc(x) = sin(pi*x)/(pi*x)
  3623.          delta(t) = (t == 0)
  3624.          ramp(t) = (t > 0) ? t : 0
  3625.          min(a,b) = (a < b) ? a : b
  3626.          comb(n,k) = n!/(k!*(n-k)!)
  3627.          len3d(x,y,z) = sqrt(x*x+y*y+z*z)
  3628.  
  3629.  Note that the variable `pi` is already defined.
  3630.  
  3631.  See `show functions` and `show variables`.
  3632. 2 bugs
  3633. ?bugs
  3634.  The bessel functions do not work for complex arguments.
  3635.  
  3636.  The gamma function does not work for complex arguments.
  3637.  
  3638.  There is a bug in the stdio library for old Sun operating systems
  3639.  (SunOS Sys4-3.2). The "%g" format for 'printf' sometimes incorrectly
  3640.  prints numbers (e.g., 200000.0 as "2"). Thus, tic mark labels may be
  3641.  incorrect on a Sun4 version of GNUPLOT. A work-around is to rescale
  3642.  the data or use the `set format` command to change the tic mark format
  3643.  to "%7.0f" or some other appropriate format. This appears to have been
  3644.  fixed in SunOS 4.0.
  3645.  
  3646.  Another bug: On a Sun3 under SunOS 4.0, and on Sun4's under Sys4-3.2
  3647.  and SunOS 4.0, the 'sscanf' routine incorrectly parses "00 12" with
  3648.  the format "%f %f" and reads 0 and 0 instead of 0 and 12. This
  3649.  affects data input. If the data file contains x coordinates that are
  3650.  zero but are specified like '00', '000', etc, then you will read the
  3651.  wrong y values. Check any data files or upgrade the SunOS.
  3652.  It appears to have been fixed in SunOS 4.1.1.
  3653.  
  3654.  Microsoft C 5.1 has a nasty bug associated with the %g format for
  3655.  printf. When any of the formats "%.2g", "%.1g", "%.0g", "%.g" are
  3656.  used, printf will incorrectly print numbers in the range 1e-4 to 1e-1.
  3657.  Numbers that should be printed in the %e format are incorrectly
  3658.  printed in the %f format, with the wrong number of zeros after the
  3659.  decimal point.
  3660.  
  3661.  To work around this problem, use the %e or %f formats explicitly.
  3662.  
  3663.  GNUPLOT, when compiled with Microsoft C, did not work correctly on two
  3664.  VGA displays that were tested. The CGA, EGA and VGA drivers should
  3665.  probably be rewritten to use the Microsoft C graphics library.
  3666.  GNUPLOT compiled with Borland C++ uses the Turbo C graphics drivers and
  3667.  does work correctly with VGA displays.
  3668.  
  3669.  VAX/VMS 4.7 C compiler release 2.4 also has a poorly implemented %g
  3670.  format for printf. The numbers are printed numerically correct, but
  3671.  may not be in the requested format. The K&R second edition says that
  3672.  for the %g format, %e is used if the exponent is less than -4 or greater
  3673.  than or equal to the precision. The VAX uses %e format if the exponent
  3674.  is less than -1. The VAX appears to take no notice of the precision
  3675.  when deciding whether to use %e or %f for numbers less than 1.
  3676.  To work around this problem, use the %e or %f formats explicitly.
  3677.  From the VAX C 2.4 release notes:
  3678.  e,E,f,F,g,G  Result will always contain a decimal  point.
  3679.  For g and G, trailing zeros will not be removed from the result.
  3680.  
  3681.  VAX/VMS 5.2 C compiler release 3.0 has a slightly better implemented
  3682.  %g format than release 2.4, but not much. Trailing decimal points are
  3683.  now removed, but trailing zeros are still not removed from %g numbers
  3684.  in exponential format.
  3685.  
  3686.  ULTRIX X11R3 has a bug that causes the X11 driver to display "every
  3687.  other" plot.  The bug seems to be fixed in DEC's release of X11R4 so
  3688.  newer releases of ULTRIX don't seem to have the problem.  Solutions for
  3689.  older sites include upgrading the X11 libraries (from DEC or direct from
  3690.  MIT) or defining ULTRIX_KLUDGE when compiling the x11.trm file.  Note
  3691.  that the kludge is not an ideal fix, however.
  3692.  
  3693.  The constant HUGE was incorrectly defined in the NeXT OS 2.0 operating
  3694.  system.  HUGE should be set to 1e38 in plot.h. This error has been
  3695.  corrected in the 2.1 version of NeXT OS.
  3696.  
  3697.  Some older models of HP plotters do not have a page eject command 'PG'.
  3698.  The current HPGL driver uses this command in HPGL_reset.  This may need
  3699.  to be removed for these plotters.  The current PCL5 driver uses HPGL/2
  3700.  for text as well as graphics.  This should be modified to use scalable
  3701.  PCL fonts.
  3702.  
  3703.  On the Atari version, it is not possible to send output directly to
  3704.  the printer (using `/dev/lp` as output file), since CRs are added to LFs in
  3705.  binary output. As a workaround write the output to a file and copy it to
  3706.  the printer afterwards using a shell command.
  3707.  
  3708.  Please report any bugs to bug-gnuplot@dartmouth.edu.
  3709.